From b6428b421f0287cc76f9c06f1b6b9ddfd1e8cc84 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 27 May 2023 02:21:40 +0200 Subject: [PATCH] Fix Region Export alignment Session::start_audio_export correctly sets preroll offset depending on export-mode. A later locate must not change it. --- libs/ardour/session_transport.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 53b8242105..7acfdc0d8e 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -203,7 +203,7 @@ Session::locate (samplepos_t target_sample, bool for_loop_end, bool force, bool // thread(s?) can restart. _seek_counter.fetch_add (1); _last_roll_or_reversal_location = target_sample; - if (!for_loop_end) { + if (!for_loop_end && !_exporting) { _remaining_latency_preroll = worst_latency_preroll_buffer_size_ceil (); } timecode_time(_transport_sample, transmitting_timecode_time); // XXX here?