music.c
changeset 58 7b2c2ed3399e
parent 57 68b1508afa73
child 63 92b13db7d0a5
equal deleted inserted replaced
57:68b1508afa73 58:7b2c2ed3399e
   298 		Mix_SetError("%s", MikMod_strerror(MikMod_errno));
   298 		Mix_SetError("%s", MikMod_strerror(MikMod_errno));
   299 		++music_error;
   299 		++music_error;
   300 	}
   300 	}
   301 #endif
   301 #endif
   302 #ifdef MID_MUSIC
   302 #ifdef MID_MUSIC
       
   303 	samplesize	 = mixer->size/mixer->samples;
   303 	if ( Timidity_Init(mixer->freq,
   304 	if ( Timidity_Init(mixer->freq,
   304 			mixer->format, mixer->channels, mixer->samples) == 0 ) {
   305 			mixer->format, mixer->channels, mixer->samples) == 0 ) {
   305 		timidity_ok = 1;
   306 		timidity_ok = 1;
   306 	} else {
   307 	} else {
   307 		timidity_ok = 0;
   308 		timidity_ok = 0;