diff options
Diffstat (limited to 'libs/ardour/midi_diskstream.cc')
-rw-r--r-- | libs/ardour/midi_diskstream.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc index 80faab1f9d..cd7e530a42 100644 --- a/libs/ardour/midi_diskstream.cc +++ b/libs/ardour/midi_diskstream.cc @@ -621,7 +621,7 @@ MidiDiskstream::commit (framecnt_t playback_distance) * * In those cases the butler needs to be summed to refill the buffer (done now) * AND we need to skip (frames_read - frames_written). ie remove old events - * before playback_sample from the rinbuffer. (not yet done) + * before playback_sample from the rinbuffer. * * [1] one way to do so is described at #6170. * For me just popping up the context-menu on a MIDI-track header @@ -1440,6 +1440,8 @@ MidiDiskstream::get_playback (MidiBuffer& dst, framecnt_t nframes) size_t events_read = 0; + _playback_buf->skip_to (playback_sample); + if (loc) { framepos_t effective_start; |