From 8c3551341c312180eba79551bbc2f29f2797bdca Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Fri, 15 Jul 2016 02:02:21 +0200 Subject: [PATCH] Make Route and Track ::silent_roll() also flush out ports buffers So that MIDI in the ports is really made silent. --- libs/ardour/route.cc | 1 + libs/ardour/track.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 1e1be37d9f..46b17cdbc7 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -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; } diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 7b81397e04..062f1601c4 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -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;