|
|
| version 1.2, 2003/11/28 08:01:32 | version 1.4, 2005/02/07 14:46:08 |
|---|---|
| Line 3 | Line 3 |
| #include "wavefile.h" | #include "wavefile.h" |
| static BOOL headwrite(WAVEWR hdl) { | static BOOL headwrite(WAVEWR hdl) { |
| RIFF_HEADER rif; | RIFF_HEADER rif; |
| Line 120 UINT wavewr_write(WAVEWR hdl, const void | Line 119 UINT wavewr_write(WAVEWR hdl, const void |
| wr = min(hdl->remain, size); | wr = min(hdl->remain, size); |
| CopyMemory(hdl->ptr, buf, wr); | CopyMemory(hdl->ptr, buf, wr); |
| size -= wr; | size -= wr; |
| buf = ((BYTE *)buf) + wr; | buf = ((UINT8 *)buf) + wr; |
| hdl->ptr += wr; | hdl->ptr += wr; |
| hdl->remain -= wr; | hdl->remain -= wr; |
| if (!hdl->remain) { | if (!hdl->remain) { |