music.c
changeset 265 26629b8f3106
parent 264 e62571f9bcbf
child 269 1c015da5a712
equal deleted inserted replaced
264:e62571f9bcbf 265:26629b8f3106
  1349 		} else {
  1349 		} else {
  1350 			SMPEG_actualSpec(music->data.mp3, &used_mixer);
  1350 			SMPEG_actualSpec(music->data.mp3, &used_mixer);
  1351 		}
  1351 		}
  1352 	} else
  1352 	} else
  1353 #endif
  1353 #endif
       
  1354 #ifdef MID_MUSIC
       
  1355 	/* MIDI files have the magic four bytes "MThd" */
       
  1356 	if ( strcmp((char *)magic, "MThd") == 0 ) {
       
  1357 		music->type = MUS_MID;
       
  1358 #ifdef USE_TIMIDITY_MIDI
       
  1359 		music->data.midi = Timidity_LoadSong_RW(rw);
       
  1360 		if ( music->data.midi == NULL ) {
       
  1361 			music->error = 1;
       
  1362 		}
       
  1363 #endif
       
  1364 	} else
       
  1365 #endif
  1354 #if defined(MOD_MUSIC) || defined(LIBMIKMOD_MUSIC)
  1366 #if defined(MOD_MUSIC) || defined(LIBMIKMOD_MUSIC)
  1355 	if (1) {
  1367 	if (1) {
  1356 		music->type=MUS_MOD;
  1368 		music->type=MUS_MOD;
  1357 		music->data.module=MikMod_LoadSongRW(rw,64);
  1369 		music->data.module=MikMod_LoadSongRW(rw,64);
  1358 		if (music->data.module==NULL) {
  1370 		if (music->data.module==NULL) {