X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=sound.c;h=480690d10394493ee85db2c0a55175b35cc941cc;hp=d522955b0cc7dcf4c25c53f41dac2c8f4ce52f9f;hb=e0fab1bd78914a12ee88f2a9fcfca9f28a1df0f2;hpb=46dacbe75dac20a1c6e1b61a2eb99ca25fc971ec diff --git a/sound.c b/sound.c index d522955..480690d 100644 --- a/sound.c +++ b/sound.c @@ -1,7 +1,13 @@ -#include "sound.h" +#include +#include +#include +#include +#include + +#include "args.h" +#include "common.h" #include "config.h" - -extern int sound_flag, music_flag; +#include "sound.h" #define TUNE_TITLE_PAGE 0 #define TUNE_GAMEPLAY 1 @@ -72,7 +78,7 @@ init_sound() { void play_sound(int i) { - if(!sound_flag) return; + if(!opt_sound) return; debug(printf ("play sound %d on first free channel\n",i)); Mix_PlayChannel(-1, wav[i], 0); }/*}}}*/ @@ -82,7 +88,7 @@ int playing=-1; void play_tune(int i) {/*{{{*/ - if(!music_flag) return; + if(!opt_music) return; if (playing==i) return; if (playing) {