Make Route and Track ::silent_roll() also flush out ports buffers
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Fri, 15 Jul 2016 00:02:21 +0000 (02:02 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 15 Jul 2016 01:55:49 +0000 (21:55 -0400)
So that MIDI in the ports is really made silent.

libs/ardour/route.cc
libs/ardour/track.cc

index 1e1be37d9f941d5309a8d66ac123507a4a27cb87..46b17cdbc745ff469622cdef144356bdf8b0e5da 100644 (file)
@@ -3501,6 +3501,7 @@ int
 Route::silent_roll (pframes_t nframes, framepos_t /*start_frame*/, framepos_t /*end_frame*/, bool& /* need_butler */)
 {
        silence (nframes);
+       flush_processor_buffers_locked (nframes);
        return 0;
 }
 
index 7b81397e04fcb0f092c1c94e2e38a9221951ceaa..062f1601c4ee23ad1d7a58cf7397ec67ae4f3871 100644 (file)
@@ -496,6 +496,7 @@ Track::silent_roll (pframes_t nframes, framepos_t /*start_frame*/, framepos_t /*
        _amp->apply_gain_automation(false);
 
        silence (nframes);
+       flush_processor_buffers_locked (nframes);
 
        framecnt_t playback_distance;