0
0

I have downloaded the latest stable release, and although I see things that suggest it can play back .mid files I can’t see any sample code. I’ve looked at some of the posts here, but there’s only a few lines of code shown, and trying to patch the "playsound" example project to make it do MIDI is just leading to errors.

Are there any standalone MIDI sample projects?

  • You must to post comments
0
0

Playing a MIDI file is almost the same as playing a WAVE file when using FMOD. You System::createSound and System::playSound just as you normally would but pointing to your MIDI file. The extra piece required for MIDI playback on iOS is specifying a sample bank to render the MIDI with (a DLS file).

You can specify a DLS file via FMOD_CREATESOUNDEXINFO passed into the System::createSound function, be sure to memset the structure to 0, set the cbsize to sizeof(FMOD_CREATESOUNDEXINFO) and set dlsname to a full path to a DLS file.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.