From 16677e80cd539b2c3581748b41b528dcc84d0138 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 9 Jan 2020 03:37:21 +0100 Subject: [PATCH] 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) --- libs/ardour/disk_writer.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 3e09a243f6..f6ccf560ec 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -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; } }