13
0

Ignore inactive routes for pre-roll sub-cycles

This commit is contained in:
Robin Gareus 2024-09-30 23:36:36 +02:00
parent 1aad6805b3
commit 22a2cb0624
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -348,6 +348,9 @@ Session::calc_preroll_subcycle (samplecnt_t ns) const
{
std::shared_ptr<RouteList const> 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 */