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 /libs/ardour/amp.cc | |
parent | 55094b723774086d0f54d688b1ca73a4df82b93e (diff) |
working version of new gain control design
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index 8dac6d73fc..49570bb511 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -348,25 +348,6 @@ Amp::apply_simple_gain (AudioBuffer& buf, framecnt_t nframes, gain_t target) } } -void -Amp::inc_gain (gain_t factor, void *src) -{ - float desired_gain = _gain_control->user_double(); - - if (fabsf (desired_gain) < GAIN_COEFF_SMALL) { - // really?! what's the idea here? - set_gain (0.000001f + (0.000001f * factor), src); - } else { - set_gain (desired_gain + (desired_gain * factor), src); - } -} - -void -Amp::set_gain (gain_t val, void *) -{ - _gain_control->set_value (val, Controllable::NoGroup); -} - XMLNode& Amp::state (bool full_state) { |