summaryrefslogtreecommitdiff
path: root/libs/ardour/port_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-11-03 15:18:04 +0100
committerRobin Gareus <robin@gareus.org>2019-11-03 15:19:37 +0100
commit2fde6a5777694c454d102c7fa1bd9ea594d4db2b (patch)
treee0d774c36fe9dc1ce23f23a7cbd2497be51cccfd /libs/ardour/port_manager.cc
parent98224a264ec53c5c3488e3507ed3ce7b138820c1 (diff)
Correctly flush MIDI buffers on cycle-split
Diffstat (limited to 'libs/ardour/port_manager.cc')
-rw-r--r--libs/ardour/port_manager.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc
index 24c693c431..8be1f7f7e9 100644
--- a/libs/ardour/port_manager.cc
+++ b/libs/ardour/port_manager.cc
@@ -845,7 +845,9 @@ PortManager::cycle_end (pframes_t nframes, Session* s)
}
for (Ports::iterator p = _cycle_ports->begin(); p != _cycle_ports->end(); ++p) {
- p->second->flush_buffers (nframes);
+ /* AudioEngine::split_cycle flushes buffers until Port::port_offset.
+ * Now only flush remaining events (after Port::port_offset) */
+ p->second->flush_buffers (nframes - Port::port_offset ());
}
_cycle_ports.reset ();