|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.5, 2005/02/04 06:42:12 |
|---|---|
| Line 5 | Line 5 |
| typedef void (SOUNDCALL * SOUNDCB)(void *hdl, SINT32 *pcm, UINT count); | typedef void (SOUNDCALL * SOUNDCB)(void *hdl, SINT32 *pcm, UINT count); |
| #if !defined(DISABLE_SOUND) | |
| typedef struct { | typedef struct { |
| UINT rate; | UINT rate; |
| // UINT32 hzbase; | UINT32 hzbase; |
| // UINT32 clockbase; | UINT32 clockbase; |
| // UINT32 minclock; | UINT32 minclock; |
| // UINT32 lastclock; | UINT32 lastclock; |
| UINT writecount; | UINT writecount; |
| } SOUNDCFG; | } SOUNDCFG; |
| Line 21 extern "C" { | Line 23 extern "C" { |
| extern SOUNDCFG soundcfg; | extern SOUNDCFG soundcfg; |
| BOOL sound_create(UINT rate, UINT ms); | BRESULT sound_create(UINT rate, UINT ms); |
| void sound_destroy(void); | void sound_destroy(void); |
| void sound_reset(void); | void sound_reset(void); |
| Line 35 const SINT32 *sound_pcmlock(void); | Line 37 const SINT32 *sound_pcmlock(void); |
| void sound_pcmunlock(const SINT32 *hdl); | void sound_pcmunlock(const SINT32 *hdl); |
| #if defined(SUPPORT_WAVEREC) | #if defined(SUPPORT_WAVEREC) |
| BOOL sound_recstart(const char *filename); | BRESULT sound_recstart(const OEMCHAR *filename); |
| void sound_recstop(void); | void sound_recstop(void); |
| #endif | #endif |
| Line 43 void sound_recstop(void); | Line 45 void sound_recstop(void); |
| } | } |
| #endif | #endif |
| #else | |
| #define sound_create(r, m) (FAILURE) | |
| #define sound_destroy() | |
| #define sound_reset() | |
| #define sound_changeclock() | |
| #define sound_streamregist(h, c) | |
| #define sound_sync() | |
| #define sound_makesample(l) | |
| #define sound_pcmlock() (NULL) | |
| #define sound_pcmunlock(h) | |
| #endif | |