Hi,
I’m using libADLMidi with SDL2_Mixer to play XMI files. As stated in the libADLMidi example with SDL2_Mixer, I set up a callback function that will handle the copy of the data to the SDL stream. It works well.
But if I want for example to pause/resume the music, I would have thought that calling Mix_PauseMusic()/Mix_ResumeMusic() would stop calling the callback. But it seems that it’s not the case.
So as in the example, I only managed a “is_playing” flag that I read in the callback to track if I must play or not the midi data.
Is there a better way to manage this ?
Thank you!