Mercurial > SDL_sound_CoreAudio
diff decoders/midi.c @ 477:3e705c9180e5
Fixed binary compatibility, added Sound_GetDuration().
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 12 May 2004 02:15:00 +0000 |
parents | c66080364dff |
children | 8a814bbbedfa |
line wrap: on
line diff
--- a/decoders/midi.c Sat May 08 22:06:14 2004 +0000 +++ b/decoders/midi.c Wed May 12 02:15:00 2004 +0000 @@ -107,13 +107,13 @@ SNDDBG(("MIDI: Accepting data stream.\n")); internal->decoder_private = (void *) song; + internal->total_time = Timidity_GetSongLength(song); sample->actual.channels = 2; sample->actual.rate = 44100; sample->actual.format = AUDIO_S16SYS; + sample->flags = SOUND_SAMPLEFLAG_CANSEEK; - sample->total_time = Timidity_GetSongLength(song); - sample->flags = SOUND_SAMPLEFLAG_CANSEEK; return(1); /* we'll handle this data. */ } /* MIDI_open */