0
0

What is the best way to play a midi file in a loop?
(I’m using C)

cuurently i’m using this code:

FMOD_System_CreateSound(fmodSystem, "sound.mid", FMOD_SOFTWARE | FMOD_LOOP_NORMAL, 0, &sound_background);

FMOD_System_PlaySound(fmodSystem, FMOD_CHANNEL_FREE, sound_background, 0, &fmodChannel);

I’m having problems that the sound stops somewhere in the middle of the song (maybe it’s related that i’m playing other wav sounds as well?)

Thanks

  • You must to post comments
0
0

That might be something to do with the midi. Have you tried a different midi such as canyon.mid or the ones that come with windows?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.