From 0ebcf50fbdf5cd48ffba8d5d71bf0189e2289ae2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 14 Nov 2012 20:38:25 +0000 Subject: [PATCH] use const static member instead of a magic number git-svn-id: svn://localhost/ardour2/branches/3.0@13500 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/amp.cc | 5 ++--- 1 file 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);