music.c
changeset 265 26629b8f3106
parent 264 e62571f9bcbf
child 269 1c015da5a712
     1.1 --- a/music.c	Mon Jul 04 19:45:30 2005 +0000
     1.2 +++ b/music.c	Mon Jul 04 19:53:00 2005 +0000
     1.3 @@ -1351,6 +1351,18 @@
     1.4  		}
     1.5  	} else
     1.6  #endif
     1.7 +#ifdef MID_MUSIC
     1.8 +	/* MIDI files have the magic four bytes "MThd" */
     1.9 +	if ( strcmp((char *)magic, "MThd") == 0 ) {
    1.10 +		music->type = MUS_MID;
    1.11 +#ifdef USE_TIMIDITY_MIDI
    1.12 +		music->data.midi = Timidity_LoadSong_RW(rw);
    1.13 +		if ( music->data.midi == NULL ) {
    1.14 +			music->error = 1;
    1.15 +		}
    1.16 +#endif
    1.17 +	} else
    1.18 +#endif
    1.19  #if defined(MOD_MUSIC) || defined(LIBMIKMOD_MUSIC)
    1.20  	if (1) {
    1.21  		music->type=MUS_MOD;