From c8a9b28d3bee57604c5f8e4241f6f3ea10402f2c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Sep 2017 22:21:27 -0400 Subject: remove getter for Amp::_apply_automation_gain; reset member to false after use, and true after ::setup_automation_gain runs successfully --- libs/ardour/amp.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/amp.cc') 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(); -- cgit v1.2.3