X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=sound.c;h=6ddc49695e2006b326d7810cd61bba821b868d1e;hp=0dc94efd366f6ca3b1047ffdab88b75d96f58b9d;hb=0d16e986bbae8d7b4f061afdb562a052f43f5a85;hpb=31a00c721be0b569bc554069cc0a3eb2864eb61f diff --git a/sound.c b/sound.c index 0dc94ef..6ddc496 100644 --- a/sound.c +++ b/sound.c @@ -1,5 +1,5 @@ -#include -#include +#include +#include #include #include #include @@ -11,7 +11,7 @@ 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; @@ -20,10 +20,7 @@ int audio_channels; char *add_data_path(char *); char *wav_file[] = { - "booom.wav", - "cboom.wav", - "boom.wav", - "bzboom.wav" + "bang.wav" }; char *tune_file[] = { @@ -70,14 +67,14 @@ void 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) {