Revert "add an Amp to Delivery, remove it from Send, make use of this in various...
[ardour.git] / libs / ardour / amp.cc
index b7e639b9f5fdb357b833c30f2cd086d45abc2cd4..880fe2575ef60351f923da6afa5ce2893aad6397 100644 (file)
@@ -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 */