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!
- alfa1783 asked 7 years ago
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!
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.
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?
Please login first to submit.