From 3195fb720a77f5de061bf4fc771fcab709084ea7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 14 Sep 2021 22:02:24 +0200 Subject: [PATCH] Fix latency signal emission sequence when using JACK Capture latency needs to be updated before playback latency, various internal parts depend on this order (which is also the default for libjack itself). --- libs/ardour/audioengine.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index d6feaa0fdd..31fc300145 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -308,12 +308,12 @@ AudioEngine::process_callback (pframes_t nframes) } if (lp || lc) { tm.release (); - if (lp) { - _session->update_latency (true); - } if (lc) { _session->update_latency (false); } + if (lp) { + _session->update_latency (true); + } tm.acquire (); } }