use const static member instead of a magic number
git-svn-id: svn://localhost/ardour2/branches/3.0@13500 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a9fcbef6e0
commit
0ebcf50fbd
@ -414,9 +414,8 @@ Amp::set_state (const XMLNode& node, int version)
|
|||||||
void
|
void
|
||||||
Amp::GainControl::set_value (double val)
|
Amp::GainControl::set_value (double val)
|
||||||
{
|
{
|
||||||
// max gain at about +6dB (10.0 ^ ( 6 dB * 0.05))
|
if (val > max_gain_coefficient) {
|
||||||
if (val > 1.99526231) {
|
val = max_gain_coefficient;
|
||||||
val = 1.99526231;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_amp->set_gain (val, this);
|
_amp->set_gain (val, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user