|
|
| version 1.1, 2003/10/16 17:58:01 | version 1.3, 2004/01/08 16:29:56 |
|---|---|
| Line 3 | Line 3 |
| #define SOUNDCALL | #define SOUNDCALL |
| #endif | #endif |
| #if defined(SUPPORT_WAVEMIX) | |
| #include "wavemix.h" | |
| #endif | |
| typedef void (SOUNDCALL * SOUNDCB)(void *hdl, SINT32 *pcm, UINT count); | typedef void (SOUNDCALL * SOUNDCB)(void *hdl, SINT32 *pcm, UINT count); |
| typedef struct { | |
| UINT rate; | |
| UINT32 hzbase; | |
| UINT32 clockbase; | |
| UINT32 minclock; | |
| UINT32 lastclock; | |
| UINT writecount; | |
| } SOUNDCFG; | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| extern UINT32 opna_rate; | extern SOUNDCFG soundcfg; |
| extern UINT32 dsound_lastclock; | |
| BOOL sound_create(UINT rate, UINT ms); | BOOL sound_create(UINT rate, UINT ms); |
| void sound_destroy(void); | void sound_destroy(void); |
| void sound_reset(void); | void sound_reset(void); |
| void sound_changeclock(void); | |
| void sound_streamregist(void *hdl, SOUNDCB cbfn); | void sound_streamregist(void *hdl, SOUNDCB cbfn); |
| void sound_sync(void); | void sound_sync(void); |