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).
This commit is contained in:
Robin Gareus 2021-09-14 22:02:24 +02:00
parent bc4eb334d9
commit 3195fb720a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();
}
}