projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use const static member instead of a magic number
[ardour.git]
/
libs
/
ardour
/
amp.cc
diff --git
a/libs/ardour/amp.cc
b/libs/ardour/amp.cc
index 94204a1a84b7133375eeff60de00f2145aa2b0cd..f60240fd57c128dc6ca97a74364eecbb90b56912 100644
(file)
--- a/
libs/ardour/amp.cc
+++ b/
libs/ardour/amp.cc
@@
-414,9
+414,8
@@
Amp::set_state (const XMLNode& node, int version)
void
Amp::GainControl::set_value (double val)
{
- // max gain at about +6dB (10.0 ^ ( 6 dB * 0.05))
- if (val > 1.99526231) {
- val = 1.99526231;
+ if (val > max_gain_coefficient) {
+ val = max_gain_coefficient;
}
_amp->set_gain (val, this);