diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-14 20:38:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-14 20:38:25 +0000 |
commit | 0ebcf50fbdf5cd48ffba8d5d71bf0189e2289ae2 (patch) | |
tree | 0a514d1007a2b35aa3bcf7b89c0a9130623bc1c8 /libs/ardour/amp.cc | |
parent | a9fcbef6e0eb4ded631b1ff1c93960915fcc6c43 (diff) |
use const static member instead of a magic number
git-svn-id: svn://localhost/ardour2/branches/3.0@13500 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index 94204a1a84..f60240fd57 100644 --- 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); |