diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-07 15:07:28 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-07 19:27:04 -0700 |
commit | 5ff28f9ab715c29d366a8001e71cc0c822c587f5 (patch) | |
tree | 269875aabb96623242fa697ef60272c72e5a89c8 /libs/ardour | |
parent | 901f17dd67c9804ca8b613275556c3a86a47c19b (diff) |
fix required offset when reading MIDI data near loop end/start
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/disk_reader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index d9962fb171..73dede5a96 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -1343,9 +1343,10 @@ DiskReader::get_midi_playback (MidiBuffer& dst, samplepos_t start_sample, sample DEBUG_TRACE (DEBUG::MidiDiskIO, string_compose ("playback buffer LOOP read, from %1 to %2 (%3)\n", effective_start, effective_end, this_read)); - size_t events_read = rtmb->read (*target, effective_start, effective_end, _tracker); + size_t events_read = rtmb->read (*target, effective_start, effective_end, _tracker, offset); cnt -= this_read; effective_start += this_read; + offset += this_read; DEBUG_TRACE (DEBUG::MidiDiskIO, string_compose ("%1 MDS events LOOP read %2 cnt now %3\n", _name, events_read, cnt)); |