midi-panic needs to honor split-cycle buffer offset,
authorRobin Gareus <robin@gareus.org>
Sat, 28 Nov 2015 21:33:43 +0000 (22:33 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 28 Nov 2015 21:33:43 +0000 (22:33 +0100)
otherwise panic message will be delivered out-of-order when
seamlessly looping.

libs/ardour/midi_port.cc

index d959ff9d91d758ac2524baef07d221bdf5cf7d08..771bfb979fb530f899f8daaa7b62407f7280d5a8 100644 (file)
@@ -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;
                }