I’ve been looking around for the answers for quite a while, even poured through the examples looking for a solution.
I have these lines:
But every time, I get booted out with the message "An invalid parameter was passed to this function." (FMOD_ERR_INVALID_PARAM)
In the specific case we have a designer project with a reverb created called "ui". Everything else works as expected with the project, loading/playing events, music, etc.
When I looked at your example code in the 3d example, I found code like:
result = fmodEventSystem->getReverbPreset("scarycave", &reverbprops);
However, no where in your example project is there a reverb defined with the name of "scarycave". I can’t find any reference to it except in that main.cpp file. Am I missing something here?
Here’s the .txt entry as well:
Name : ui
Index : EVENTREVERB_AUDIO_PROJECT_UI = 0
Using version 4.18 stable.
- achristoffersen asked 10 years ago
It should work the way you expect.
You are right that the 3ddemo example attempts to get a "scarycave" reverb which is not defined in the designer project. This function returns FMOD_ERR_INVALID_PARAM as you’d expect, we will update this example.
This code isn’t hit until you walk into the blue area if you turn left from your starting point move forward a little then turn left again you should see the blue area.
I changed "scarycave" to "StdReverb" which is what the reverb is called in the designer project and it returned FMOD_OK.
It’s hard to know what is exactly causing your problem, double check you’re your program is looking at the new files by rebuilding the project and copying those files to the media directory for your program.
Hope this helps.
- Guest answered 10 years ago
Please login first to submit.