summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-09 03:37:21 +0100
committerRobin Gareus <robin@gareus.org>2020-01-09 03:37:21 +0100
commit16677e80cd539b2c3581748b41b528dcc84d0138 (patch)
treec0d7e301f469b1d49b3a14d743fddb60e8b66498 /libs/ardour
parent5b8765d6ddd4f26771d082600d9fa5e95876ba6e (diff)
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)
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/disk_writer.cc2
1 files changed, 0 insertions, 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;
}
}