-#include <SDL/SDL.h>
-#include <SDL/SDL_mixer.h>
+#include <SDL.h>
+#include <SDL_mixer.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
static Mix_Music *music[NUM_TUNES];
-static int music_volume[NUM_TUNES] = {128,128,128};
+static int music_volume[NUM_TUNES] = {88,88,88};
static Mix_Chunk *wav[NUM_SOUNDS];
int audio_rate;
char *add_data_path(char *);
char *wav_file[] = {
- "sounds/booom.wav",
- "sounds/cboom.wav",
- "sounds/boom.wav",
- "sounds/bzboom.wav"
+ "bang.wav"
};
char *tune_file[] = {
- "music/magic.mod",
- "music/getzznew.mod",
- "music/4est_fulla3s.mod"
+ "magic.mod",
+ "getzznew.mod",
+ "4est_fulla3s.mod"
};
// Return 1 if the sound is ready to roll, and 0 if not.
play_sound(int i) {
if(!opt_sound) return;
Mix_PlayChannel(-1, wav[i], 0);
-}/*}}}*/
+}
int playing=-1;
void
-play_tune(int i) {/*{{{*/
- if(!opt_music) return;
+play_tune(int i) {
+ if(!opt_sound) return;
if (playing==i)
return;
if (playing) {