summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc
index b7e639b9f5..880fe2575e 100644
--- a/libs/ardour/amp.cc
+++ b/libs/ardour/amp.cc
@@ -133,19 +133,9 @@ Amp::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/,
_current_gain = Amp::apply_gain (bufs, _session.nominal_frame_rate(), nframes, _current_gain, dg, _midi_amp);
- } else if (_current_gain == GAIN_COEFF_ZERO) {
-
- /* gain has not changed, and is zero. small
- * optimization here.
- */
-
- bufs.silence (nframes, 0);
-
} else if (_current_gain != GAIN_COEFF_UNITY) {
- /* gain has not changed, but its non-unity and
- * isn't zero, so we have to do something
- */
+ /* gain has not changed, but its non-unity */
if (_midi_amp) {
/* don't Trim midi velocity -- only relevant for Midi on Audio tracks */