I’m working on a 18-band equalizer using 18 ParamEQ DSP effects from FMOD, and I was wondering what was the scale of the FMOD_DSP_PARAMEQ_GAIN parameter is in decibels. I searched the forum and couldn’t get the answer from an older post.
The documentation for FMOD_DSP_PARAMEQ says:
Frequency Gain. 0.05 to 3.0. Default = 1.0.
Does the 2.0f value mean double the volume (i.e. +10 dB), and 0.5f half the volume (-10 dB)? If not, then what is it? I’d really, really appreciate if anyone could answer this question. Thanks!
- GunnSgtHartman asked 7 years ago
Thats a very good question!
who can answer this:
When using floating point values (32 bit) , 0 dBFs would be 1.0f. What acctually happens if i set the gain factor g > 1.0? if there is no additional headroom, it should cause clipping. but this doesnt happen.
- wilson answered 6 years ago
Yes those values are linear so to convert to sound pressure in dB, i get: 20 log(2.0) = 6dB.
It will clip at the sound card if the final signal is greater than 0dB. Note that many of our API functions actually clamp the values that you pass in. If you call ChannelGroup::setVolume with a value of 2.0f, it will clamp it at 1.0 you can check this by calling getVolume. This has been changed in the upcoming FMOD version to accomidate the FMOD Studio mixer.
- Guest answered 6 years ago
Please login first to submit.