--- xmil/sound/sound.c 2004/08/11 12:08:16 1.3 +++ xmil/sound/sound.c 2005/02/04 06:42:12 1.5 @@ -1,10 +1,12 @@ #include "compiler.h" -// #include "wavefile.h" + +#if !defined(DISABLE_SOUND) + +#include "wavefile.h" #include "dosio.h" #include "soundmng.h" #include "z80core.h" #include "pccore.h" -// #include "iocore.h" #include "sound.h" #include "sndcsec.h" // #include "getsnd.h" @@ -67,7 +69,7 @@ static void streamprepare(UINT samples) #if defined(SUPPORT_WAVEREC) // ---- wave rec -BOOL sound_recstart(const char *filename) { +BRESULT sound_recstart(const OEMCHAR *filename) { WAVEWR rec; @@ -166,7 +168,7 @@ static void filltailsample(UINT count) { // ---- -BOOL sound_create(UINT rate, UINT ms) { +BRESULT sound_create(UINT rate, UINT ms) { UINT samples; UINT reserve; @@ -355,3 +357,5 @@ void sound_pcmunlock(const SINT32 *hdl) } } +#endif +