From aa8d512ee727e9f8606144ef87fb7634377ec560 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 28 Nov 2015 22:33:43 +0100 Subject: [PATCH] midi-panic needs to honor split-cycle buffer offset, otherwise panic message will be delivered out-of-order when seamlessly looping. --- libs/ardour/midi_port.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc index d959ff9d91..771bfb979f 100644 --- a/libs/ardour/midi_port.cc +++ b/libs/ardour/midi_port.cc @@ -196,7 +196,7 @@ MidiPort::flush_buffers (pframes_t nframes) if (_resolve_required) { port_buffer = port_engine.get_buffer (_port_handle, nframes); /* resolve all notes at the start of the buffer */ - resolve_notes (port_buffer, 0); + resolve_notes (port_buffer, _global_port_buffer_offset); _resolve_required = false; }