diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-13 16:32:24 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-18 12:11:08 -0500 |
commit | 1948b50a68381d7ffb14a88ffcf6da2c910bc012 (patch) | |
tree | b8e455ad1d4290ff913a2fee839708773c77ec2a /gtk2_ardour/gain_meter.cc | |
parent | 55094b723774086d0f54d688b1ca73a4df82b93e (diff) |
working version of new gain control design
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r-- | gtk2_ardour/gain_meter.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 4a7e75fcf7..7fa9bf88de 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -470,10 +470,10 @@ GainMeterBase::gain_activated () /* clamp to displayable values */ if (_data_type == DataType::AUDIO) { f = min (f, 6.0f); - _amp->set_gain (dB_to_coefficient(f), this); + _amp->gain_control()->set_value (dB_to_coefficient(f), Controllable::NoGroup); } else { f = min (fabs (f), 2.0f); - _amp->set_gain (f, this); + _amp->gain_control()->set_value (f, Controllable::NoGroup); } if (gain_display.has_focus()) { @@ -534,7 +534,7 @@ GainMeterBase::gain_adjusted () if (_route && _route->amp() == _amp) { _route->set_gain (value, this); } else { - _amp->set_gain (value, this); + _amp->gain_control()->set_value (value, Controllable::NoGroup); } } |