diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-09 03:37:21 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-09 03:37:21 +0100 |
commit | 16677e80cd539b2c3581748b41b528dcc84d0138 (patch) | |
tree | c0d7e301f469b1d49b3a14d743fddb60e8b66498 /libs/ardour | |
parent | 5b8765d6ddd4f26771d082600d9fa5e95876ba6e (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.cc | 2 |
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; } } |