From 96cc1dbe80f0378ca010c1c5ac37913958193360 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 16 Sep 2015 18:32:28 -0400 Subject: Revert "add an Amp to Delivery, remove it from Send, make use of this in various ::run() methods" This reverts commit 601a34521c2ce1d0167ed2f3c66f2fa6eeeb6b8e. --- libs/ardour/amp.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'libs/ardour/amp.cc') 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 */ -- cgit v1.2.3