X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/0a295df9a93949ae9df6a209c1222547eb4fb091..8813bb554e82f33df0ea6f461b1a653dee41bfe9:/src/sim/w_sound.c diff --git a/src/sim/w_sound.c b/src/sim/w_sound.c index bbe918a..1c11202 100644 --- a/src/sim/w_sound.c +++ b/src/sim/w_sound.c @@ -63,8 +63,11 @@ * CONSUMER, SO SOME OR ALL OF THE ABOVE EXCLUSIONS AND LIMITATIONS MAY * NOT APPLY TO YOU. */ +#ifdef WITH_SDL_MIXER #include "SDL.h" #include "SDL_mixer.h" +#endif + #include "sim.h" @@ -76,7 +79,11 @@ struct sound { char *id; char *file; +#ifdef WITH_SDL_MIXER Mix_Chunk *wave; +#else + void *wave; +#endif }; struct sound sounds[SIM_NSOUNDS] = { @@ -129,10 +136,12 @@ struct sound sounds[SIM_NSOUNDS] = { { "Zone", "zone.wav", NULL } }; +static int SoundInitialized = 0; + +#ifdef WITH_SDL_MIXER /* Sound routines */ -int SoundInitialized = 0; Mix_Chunk *rumble; @@ -257,6 +266,32 @@ StopBulldozer(void) Mix_HaltChannel(DOZER_CHANNEL); } +#else /* WITH_SDL_MIXER */ +InitializeSound() +{ +} + +ShutDownSound() +{ +} + +MakeSound(char *channel, char *id) +{ +} + +MakeSoundOn(SimView *view, char *channel, char *id) +{ +} + +StartBulldozer(void) +{ +} + +StopBulldozer(void) +{ +} +#endif + /* XXX comefrom: doKeyEvent */ SoundOff(void)