Towards fixing MIDI capture alignment

When there is no overlap (Evoral::OverlapNone) of local transport
position and the record-range, MIDI data does not need to be
offset.

This matches audio recording: Only write to the capture ringbuffer
when there is an overlap.

(There is still some unknown, unresolved discrepancy remaining
to be tracked down)
This commit is contained in:
Robin Gareus 2020-01-09 03:37:21 +01:00
parent 5b8765d6dd
commit 16677e80cd
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -463,8 +463,6 @@ DiskWriter::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
*/
if (rec_nframes) {
_accumulated_capture_offset += rec_offset;
} else {
_accumulated_capture_offset += nframes;
}
}