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…
- hotlips answered 10 years ago
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.
Please login first to submit.