OSC: fix issue 6839, make all OSC gaindB values below -192, inf.

This commit is contained in:
Len Ovens 2016-03-27 17:46:14 -07:00
parent 11cbcd793f
commit 3eb5f76edb

View File

@ -1108,6 +1108,9 @@ OSC::route_set_gain_abs (int rid, float level)
int
OSC::route_set_gain_dB (int rid, float dB)
{
if (dB < -192) {
return route_set_gain_abs (rid, 0.0);
}
return route_set_gain_abs (rid, dB_to_coefficient (dB));
}