From d85ec4ee173127a18ea68fab55f78c90713dadcf Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 3 Jan 2014 18:36:00 +0100 Subject: [PATCH] don't split process cycle at end Keep in mind: While this is the correct thing to do, it hides another another bug under the hood, related to _global_port_buffer_offset in MidiPort::flush_buffers. For debugging the latter issue, revert this. --- libs/ardour/session_process.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 18dfbf2f2e..6d8c0f9f70 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -421,7 +421,9 @@ Session::process_with_events (pframes_t nframes) check_declick_out (); } - _engine.split_cycle (this_nframes); + if (nframes > 0) { + _engine.split_cycle (this_nframes); + } /* now handle this event and all others scheduled for the same time */