From 22a2cb06245b5679859e2571907a8887b12579ff Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 30 Sep 2024 23:36:36 +0200 Subject: [PATCH] Ignore inactive routes for pre-roll sub-cycles --- libs/ardour/session_process.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 1335464731..00ecb4b87d 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -348,6 +348,9 @@ Session::calc_preroll_subcycle (samplecnt_t ns) const { std::shared_ptr r = routes.reader (); for (auto const& i : *r) { + if (!i->active ()) { + continue; + } samplecnt_t route_offset = i->playback_latency (); if (_remaining_latency_preroll > route_offset + ns) { /* route will no-roll for complete pre-roll cycle */