remove getter for Amp::_apply_automation_gain; reset member to false after use, and...
[ardour.git] / libs / ardour / amp.cc
index dd3c66bfb7313a13ae7ea4d4df075d17c50ba63d..5533e4e04559ad0e862f165a3af754c763648af6 100644 (file)
@@ -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();