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).
Am I correct?
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?"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 just wonder whether Mix_PauseMusic() works for anyone? (Winodows 2000,
native midi support)
I wanted to pause the music when the window is minimized, but it does not
work. I am using Mix_VolumeMusic(0) instead.
Also, I was told to reduce buffer size when there is a delay in sound
(Chunk).
I found that buffer size 1024*2 is ok on my 1GHz windows 2000. ( agreeable
sound delay and no skip in playing music)
Will this be diffrent on another computer? Or it depends on the midi file
size?
thnx,
tony>From: “<- Chameleon ->” <cham_gss at hotmail.com>
Reply-To: sdl at libsdl.org
To: “SDL”
Subject: [SDL] MIDI
Date: Wed, 28 Jan 2004 22:18:10 +0200
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).
Am I correct?
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag
Only on www.shaadi.com. Register now!