#OPTFLAGS = -g
#DEFINES = -DIS_LINUX -DCAM -DNET
-DEFINES = -DIS_LINUX -DNO_AIRCRASH
+DEFINES = -DIS_LINUX -DWITH_SDL_MIXER -DNO_AIRCRASH
CFLAGS += $(OPTFLAGS) $(DEFINES)
* 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"
struct sound {
char *id;
char *file;
+#ifdef WITH_SDL_MIXER
Mix_Chunk *wave;
+#else
+ void *wave;
+#endif
};
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;
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)