13
0

fix thinko in MidiRegion::render()

MidiSource::read() wants a length, not an end-sample.

This should fix (at least) some cases where notes past the region end
get included/played
This commit is contained in:
Paul Davis 2019-12-18 19:50:32 -07:00
parent 9bd8e67f39
commit c8b9184956

View File

@ -542,7 +542,7 @@ MidiRegion::render (Evoral::EventSink<samplepos_t>& dst,
dst, // destination buffer
_position - _start, // start position of the source in session samples
_start + internal_offset, // where to start reading in the source
_start + internal_offset + _length,
_length, // length to read
0,
cursor,
&tracker,