diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-12 15:21:31 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-12 15:23:05 +0100 |
commit | 7bb9d048591ecfab2b650784f8b45843773bbd41 (patch) | |
tree | 870ee6941d9e2bd49ebb53e8a849fcd0b2dc7df7 /libs/ardour/midi_diskstream.cc | |
parent | a16dd7c071e71f90a3c47671262ec984c097c045 (diff) |
cont’d work on a16dd7c, fixes #6170
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; |