[SDL] MIDI

Bill Kendrick nbs at sonic.net
Wed Jan 28 13:35:00 PST 2004


On Wed, Jan 28, 2004 at 10:18:10PM +0200, <- Chameleon -> wrote:
> This time I see the SDL_mixer documentation.
> 
> I want MIDI support in my stupid game and I see, SDL_mixer supports MIDI.
> 
> The problem is that: I cannot see any callback to inform you, when the MIDI file has finished (to play other MIDI file).

I believe it should work the same as with MOD files, which is all I use.
There's a MIX_PlayingMusic() function that'll tell you if the music has
finished or not.

  http://jcatki.no-ip.org/SDL_mixer/SDL_mixer_65.html#SEC65


-bill!
bill at newbreedsoftware.com           "Hey Shatner, ya remember that episode of
http://newbreedsoftware.com/bill/   Space Trek where your show got cancelled?"




More information about the SDL mailing list