|
|
| version 1.2, 2003/11/28 08:01:32 | version 1.4, 2005/02/09 20:11:34 |
|---|---|
| Line 11 | Line 11 |
| typedef struct { | typedef struct { |
| UINT32 sig; | UINT32 sig; |
| BYTE size[4]; | UINT8 size[4]; |
| UINT32 fmt; | UINT32 fmt; |
| } RIFF_HEADER; | } RIFF_HEADER; |
| typedef struct { | typedef struct { |
| UINT sig; | UINT sig; |
| BYTE size[4]; | UINT8 size[4]; |
| } WAVE_HEADER; | } WAVE_HEADER; |
| typedef struct { | typedef struct { |
| BYTE format[2]; | UINT8 format[2]; |
| BYTE channel[2]; | UINT8 channel[2]; |
| BYTE rate[4]; | UINT8 rate[4]; |
| BYTE rps[4]; | UINT8 rps[4]; |
| BYTE block[2]; | UINT8 block[2]; |
| BYTE bit[2]; | UINT8 bit[2]; |
| } WAVE_INFOS; | } WAVE_INFOS; |
| // ---- write | // ---- write |
| typedef struct { | typedef struct { |
| long fh; | long fh; |
| UINT rate; | UINT rate; |
| UINT bits; | UINT bits; |
| UINT ch; | UINT ch; |
| UINT size; | UINT size; |
| BYTE *ptr; | UINT8 *ptr; |
| UINT remain; | UINT remain; |
| BYTE buf[4096]; | UINT8 buf[4096]; |
| } _WAVEWR, *WAVEWR; | } _WAVEWR, *WAVEWR; |
| Line 49 typedef struct { | Line 49 typedef struct { |
| extern "C" { | extern "C" { |
| #endif | #endif |
| WAVEWR wavewr_open(const char *filename, UINT rate, UINT bits, UINT ch); | WAVEWR wavewr_open(const OEMCHAR *filename, UINT rate, UINT bits, UINT ch); |
| UINT wavewr_write(WAVEWR hdl, const void *buf, UINT size); | UINT wavewr_write(WAVEWR hdl, const void *buf, UINT size); |
| void wavewr_close(WAVEWR hdl); | void wavewr_close(WAVEWR hdl); |