diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 22:21:27 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 22:21:27 -0400 |
commit | c8a9b28d3bee57604c5f8e4241f6f3ea10402f2c (patch) | |
tree | 764e2a40094d3151a535d78ced3b2cc82887f3e4 /libs/ardour/amp.cc | |
parent | 40aebce6996abeccf46729ca069355f3bb34e5af (diff) |
remove getter for Amp::_apply_automation_gain; reset member to false after use, and true after ::setup_automation_gain
runs successfully
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index dd3c66bfb7..5533e4e045 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -120,6 +120,11 @@ Amp::run (BufferSet& bufs, samplepos_t /*start_sample*/, samplepos_t /*end_sampl _current_gain = lpf; } + /* used it, don't do it again until setup_gain_automation() is + called successfully. + */ + _apply_gain_automation = false; + } else { /* manual (scalar) gain */ gain_t const target_gain = _gain_control->get_value(); |