Mercurial > projects > hoofbaby
comparison src/impl/hoofbaby/app/codec_adhoc.d @ 2:52278c5dc19c
- Fixed build (sorry...)
- Removed ncb (double sorry... hopefully it won't be in every clone of the repo)
- Figured out the .hgignore thing
author | fraserofthenight |
---|---|
date | Tue, 07 Jul 2009 20:23:49 -0700 |
parents | 3425707ddbf6 |
children |
comparison
equal
deleted
inserted
replaced
1:d868534e9b75 | 2:52278c5dc19c |
---|---|
291 printf("Encoding time %f\n", sw.stop()); | 291 printf("Encoding time %f\n", sw.stop()); |
292 sw.start(); | 292 sw.start(); |
293 | 293 |
294 scope File file = new File("biff_happy.wmv", File.WriteCreate); | 294 scope File file = new File("biff_happy.wmv", File.WriteCreate); |
295 uint available = ringBuf.available; | 295 uint available = ringBuf.available; |
296 ringBuf.beginRead(available); | 296 auto addr = ringBuf.beginRead(available); |
297 file.write(ringBuf.addr[0 .. ringBuf.available()]); | 297 file.write(addr[0 .. ringBuf.available()]); |
298 ringBuf.endRead(available); | 298 ringBuf.endRead(available); |
299 file.close(); | 299 file.close(); |
300 | 300 |
301 printf("IO time %f\n", sw.stop()); | 301 printf("IO time %f\n", sw.stop()); |
302 sw.start(); | 302 sw.start(); |