summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2016-03-27 17:46:14 -0700
committerLen Ovens <len@ovenwerks.net>2016-03-27 17:46:14 -0700
commit3eb5f76edb70fb51697f37739bc41a79d5ee306a (patch)
tree8c9126c56f57b8c33c05f8af224fc7aae55ee710 /libs
parent11cbcd793f602f03904ba084292d4b5305d62672 (diff)
OSC: fix issue 6839, make all OSC gaindB values below -192, inf.
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 37c0cd7727..84f38f206b 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -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));
}