0
0

Hello FMOD Team,
I am trying to model the reverb effect on my project, i suddenly meet a question toward the System::setReverbAmbientProperties. It pass FMOD_REVERB_PROPERTIES * prop , donot like the const FMOD_REVERB_PROPERTIES * prop in the System::setReverbProperties. Is it has modified some data when transfer the prop into setReverbAmbientProperties function? Is it true? and how the fmodSystem do this? Please help me.
Thanks a lot in advance, and sorry for my poor english!

  • You must to post comments
0
0

I really want to know why the setReverbAmbientProperties function need to transfer a parameter FMOD_REVERB_PROPERTIES * prop, not the [u:16vecmag]const FMOD_REVERB_PROPERTIES * prop[/u:16vecmag], cause my project using this function. If this little question would not be handled that i must change my structure have designed, can anyone help me, thanks very much!

  • You must to post comments
0
0

The FMOD API does not use the const qualifier on input parameters except for char* to handle string literals. Regardless, that function will not modify the contents of your REVERB_PROPERTIES struct. To get around this I would recommend using const_cast before passing to FMOD.

-Pete

  • You must to post comments
0
0

Sir, do you mean the FMOD_REVERB_PROPERTIES * prop when I transfered into one area for reverb, in this area, fmod will not change anything about the prop parameter, only leave this area, fmod will change to other ambient reverb what i have set. The setReverbAmbientProperties function treat the background reverberation is also based on the unit sphere?

  • You must to post comments
0
0

Sorry, I don’t really understand your post.

Just so we’re clear, FMOD will not modify prop. It just copies your FMOD_REVERB_PROPERTIES *prop.

  • You must to post comments
0
0

I get it, thanks Peter, I add const_cast to my project, and donot modify my strcture have designed, it’s cool!

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.