diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-16 18:32:28 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-16 18:38:44 -0400 |
commit | 96cc1dbe80f0378ca010c1c5ac37913958193360 (patch) | |
tree | fc89043007be602c33bf8752bc5461dc73d23349 /libs/ardour/amp.cc | |
parent | 202b9cc82a6d602ec842b60d609ebdcfe6bac16d (diff) |
Revert "add an Amp to Delivery, remove it from Send, make use of this in various ::run() methods"
This reverts commit 601a34521c2ce1d0167ed2f3c66f2fa6eeeb6b8e.
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 12 |
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 */ |