0
0

I’m using the stream functions, and depending on FSOUND_Stream_SetEndCallback to notify me when the stream has stopped playing.

This is working for WAV and MP3. But for MIDI, the callback doesn’t appear to be called.

How should I go about determining when a MIDI has finished playing? Can it be done with the stream functions?

By the way, one thing my program may do when a sound finishes is start it over from the beginning by setting the pointer to 0 and playing it again. Will this be possible with a MIDI?

  • You must to post comments
0
0

[quote:3geb1kda]<< midi worked under the stream api by accident. some people like this but it is not supported >>[/quote:3geb1kda]

Darn. I happen to be one of them, especially due to the fact that you can use FSOUND_Stream_GetLengthMs to get the duration of the sound, and the “official” means for doing the same with FMUSIC are torture. :-S

From my desire to use the callback, you can infer that I’d like the notification to be asynchronous. I suppose I can start a thread to watch for the end of the selection. But does anyone have any better ideas?

Thanks,
Elly

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.