projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11cbcd7
)
OSC: fix issue 6839, make all OSC gaindB values below -192, inf.
author
Len Ovens
<len@ovenwerks.net>
Mon, 28 Mar 2016 00:46:14 +0000
(17:46 -0700)
committer
Len Ovens
<len@ovenwerks.net>
Mon, 28 Mar 2016 00:46:14 +0000
(17:46 -0700)
libs/surfaces/osc/osc.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/osc/osc.cc
b/libs/surfaces/osc/osc.cc
index 37c0cd77271b746f8b1da4b064a8d11be77f705c..84f38f206b80642ee7b2bbd2670aaaa9f49401d0 100644
(file)
--- 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));
}