Hi,
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:
FMOD_REVERB_PROPERTIES reverbProps;
mpEventSystem->getReverbPreset("ui", &reverbProps);
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:
#
Reverbs
#
Name : ui
Index : EVENTREVERB_AUDIO_PROJECT_UI = 0
Notes :
Using version 4.18 stable.
Thanks!
Andrew
- achristoffersen asked 9 years ago
- You must login to post comments
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.
-Pete
- Guest answered 9 years ago
- You must login to post comments
Yeah … probably a good idea to load the project first… heh … ah. 😕
But yeah thanks for the clarification on the example demo.
Andrew
- achristoffersen answered 9 years ago
- You must login to post comments
I have a small tutorial on this subject, if you are interested:
http://labs.society46.com/2011/11/how-t … -fmod-ios/
- lnsundh answered 6 years ago
- You must login to post comments
Please login first to submit.