do not apply global transport declick to MIDI
[ardour.git] / libs / ardour / route.cc
index bd8abae88ba638323601e387ca85614bdbb7b9d5..1d8f3ca18e671611d9cfa33cccd2c067c8c95372 100644 (file)
@@ -413,9 +413,9 @@ Route::process_output_buffers (BufferSet& bufs,
           ----------------------------------------------------------------------------------------- */
 
        if (declick > 0) {
-               Amp::apply_gain (bufs, nframes, 0.0, 1.0);
+               Amp::declick (bufs, nframes, 1);
        } else if (declick < 0) {
-               Amp::apply_gain (bufs, nframes, 1.0, 0.0);
+               Amp::declick (bufs, nframes, -1);
        }
 
        _pending_declick = 0;