From 2fc43c59c40ad4ccfbf3d49dfb01b13a78ca3470 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 May 2022 15:49:25 +0200 Subject: [PATCH] Fix audible hiccup at end of realtime export --- libs/ardour/session_export.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc index ebb20e4055..3c6cf012b5 100644 --- a/libs/ardour/session_export.cc +++ b/libs/ardour/session_export.cc @@ -286,6 +286,9 @@ void Session::process_export_fw (pframes_t nframes) { if (!_export_rolling) { + if (_realtime_export) { + fail_roll (nframes); + } try { ProcessExport (0); } catch (std::exception & e) { @@ -402,8 +405,10 @@ Session::stop_audio_export () stuff that stop_transport() implements. */ - realtime_stop (true, true); - flush_all_inserts (); + if (!_realtime_export) { + realtime_stop (true, true); + flush_all_inserts (); + } _export_rolling = false; _butler->schedule_transport_work (); reset_xrun_count ();