0
0

Hello,
I’m trying to play a midi file using a specific sound font.
Can you tell me which parameters of the FMOD_CREATESOUNDEXINFO structure should be used in this case to properly load the file and have it ready to play.
Thank you,

  • You must to post comments
0
0

you would use dlsname in FMOD_CREATESOUNDEXINFO structure, and only with .dls files at the moment.

  • You must to post comments
0
0

Thank you,
Now I get the following errors with this code :

exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.dlsname = "D:/Sound Fonts/Ibanez_Guitar.dls";
result = FMOD_System_CreateSound(system,"D:/Example.mid", FMOD_DEFAULT, &exinfo, &sound1);
if( result != FMOD_OK ) printf("%s\n", FMOD_ErrorString(result));

If I use FMOD_DEFAULT as FMOD_MODE I get "Unsupported file or Audio Format" error.
If I use FMOD_OPENUSER as FMOD_MODE I get "An invalid parameter was passed to this function" error.

thanks for your help…

  • You must to post comments
0
0

maybe your dls file is incorrectly formed or not really a dls file? Where did you get it from?
Did you try C:/WINDOWS/system32/drivers/gm.dls ? just to confirm the code is alright.

Don’t use openuser unless you know what it means, that means you are creating a user sound which is to be filled in manually and needs extra members filled out in the createsound structure.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.