mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
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
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue