From 5cd6c261b703f34fafa1d44bcaa52e88e81b9611 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 11 Apr 2021 15:09:53 +0200 Subject: [PATCH] Revert "Fix MIDI capture alignment" This reverts commit 3fe87b9fa1417cfcf6636ff9bf4c8c2abcb6f796. This commit incorrectly overcompensated MIDI. The DW already aligns to _first_recordable_sample. --- libs/ardour/disk_writer.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 75fc7a3481..8121a00056 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -178,9 +178,6 @@ DiskWriter::check_record_status (samplepos_t transport_sample, double speed, boo if (_alignment_style == ExistingMaterial) { _first_recordable_sample += _capture_offset + _playback_offset; - if (_accumulated_capture_offset == 0) { - _accumulated_capture_offset = _playback_offset; - } } if (_session.config.get_punch_out () && 0 != (loc = _session.locations()->auto_punch_location ())) {