From 79b50aebcd9b9694828dfecdeb06b6d58eeb2bc7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 28 May 2021 21:22:10 +0200 Subject: [PATCH] Ignore all export xruns while not rolling This fixes false positives with some backends, notably JACK2. --- libs/ardour/session_transport.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 2cc248b92a..3bf039fe26 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1806,15 +1806,8 @@ Session::xrun_recovery () } } - else if (exporting ()) { - /* apparently JACK2 can cause xruns during freewheeling - * (and not just one when switching from/to freewheeling): - * https://discourse.ardour.org/t/there-have-been-dropouts-during-realtime-export/105930 - * https://github.com/jackaudio/jack2/issues/758 - */ - if (realtime_export ()) { - ++_export_xruns; - } + else if (_exporting && _realtime_export && _export_rolling) { + ++_export_xruns; } }