music.c
changeset 142 59564a17ae18
parent 140 efa15d2a5403
child 154 f1a9d3e178d3
     1.1 --- a/music.c	Fri Dec 14 14:59:08 2001 +0000
     1.2 +++ b/music.c	Mon Dec 17 02:39:12 2001 +0000
     1.3 @@ -81,7 +81,6 @@
     1.4  static int volatile music_stopped = 0;
     1.5  static int music_loops = 0;
     1.6  static char *music_cmd = NULL;
     1.7 -static int samplesize;
     1.8  static Mix_Music * volatile music_playing = NULL;
     1.9  static int music_volume = MIX_MAX_VOLUME;
    1.10  static int music_swap8;
    1.11 @@ -130,6 +129,7 @@
    1.12  #ifdef MID_MUSIC
    1.13  #ifdef USE_TIMIDITY_MIDI
    1.14  static int timidity_ok;
    1.15 +static int samplesize;
    1.16  #endif
    1.17  #ifdef USE_NATIVE_MIDI
    1.18  static int native_midi_ok;
    1.19 @@ -338,7 +338,7 @@
    1.20  #endif
    1.21  #ifdef MID_MUSIC
    1.22  #ifdef USE_TIMIDITY_MIDI
    1.23 -	samplesize = mixer->size/mixer->samples;
    1.24 +	samplesize = mixer->size / mixer->samples;
    1.25  	if ( Timidity_Init(mixer->freq, mixer->format,
    1.26  	                    mixer->channels, mixer->samples) == 0 ) {
    1.27  		timidity_ok = 1;