|
|
| version 1.1, 2003/10/16 17:57:16 | version 1.2, 2003/11/28 08:01:32 |
|---|---|
| Line 30 typedef struct { | Line 30 typedef struct { |
| } WAVE_INFOS; | } WAVE_INFOS; |
| #if 0 | // ---- write |
| typedef long (*WFSEEK)(void *fh, long pos, int method); | |
| typedef UINT (*WFREAD)(void *fh, void *buf, UINT size); | |
| typedef struct { | typedef struct { |
| UINT rate; | long fh; |
| UINT channels; | UINT rate; |
| UINT bit; | UINT bits; |
| UINT ch; | |
| void *fh; | UINT size; |
| WFREAD read; | |
| WFSEEK seek; | BYTE *ptr; |
| } _WAVHDL, *WAVHDL; | UINT remain; |
| BYTE buf[4096]; | |
| WAVHDL wavhdl_create(void *fh, WFSEEK seek, WFREAD read); | } _WAVEWR, *WAVEWR; |
| void wavhdl_destroy(WAVHDL hdl); | |
| UINT wavhdl_getpcm(WAVHDL hdl, void *buf, UINT size); | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| WAVEWR wavewr_open(const char *filename, UINT rate, UINT bits, UINT ch); | |
| UINT wavewr_write(WAVEWR hdl, const void *buf, UINT size); | |
| void wavewr_close(WAVEWR hdl); | |
| #ifdef __cplusplus | |
| } | |
| #endif | #endif |