X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=sound.c;h=6ddc49695e2006b326d7810cd61bba821b868d1e;hp=5f977566f28da12ddf909168a9a0eb7f24eedf63;hb=0d16e986bbae8d7b4f061afdb562a052f43f5a85;hpb=88a9e026caed5568363cefb7d49308b875dc5e4a diff --git a/sound.c b/sound.c index 5f97756..6ddc496 100644 --- a/sound.c +++ b/sound.c @@ -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) {