--- xmil/sound/sound.h 2004/08/18 15:42:33 1.4 +++ xmil/sound/sound.h 2005/02/04 06:42:12 1.5 @@ -5,6 +5,8 @@ typedef void (SOUNDCALL * SOUNDCB)(void *hdl, SINT32 *pcm, UINT count); +#if !defined(DISABLE_SOUND) + typedef struct { UINT rate; UINT32 hzbase; @@ -43,3 +45,17 @@ void sound_recstop(void); } #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 +