0
0

FMOD Team,

I’m debating where I need to check for same values when setting parameters in the FMOD DSP Engine. Do I need to store values in my object and verify that the value has changed before "setParameter" or will "setParameter" only signify a change to the DSP Engine if a value really changed, for example:

[code:2qntp32y] set
{
Result = DSP_LowPass.setParameter((int)FMOD.DSP_LOWPASS.RESONANCE, value);
}[/code:2qntp32y]

or should I be doing something like this:

[code:2qntp32y] set
{
if (_storedValue != value)
{
Result = DSP_LowPass.setParameter((int)FMOD.DSP_LOWPASS.RESONANCE, value);
_storedValue = value;
}
}[/code:2qntp32y]

Or does it really matter if I send the same value in using "setParameter"?

Thanks

  • You must to post comments
0
0

You can call setParameter with the same value, FMOD effects will ensure the parameter is different from its current configuration before doing any expensive recalculation.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.