Ignore inactive routes for pre-roll sub-cycles
This commit is contained in:
parent
1aad6805b3
commit
22a2cb0624
@ -348,6 +348,9 @@ Session::calc_preroll_subcycle (samplecnt_t ns) const
|
|||||||
{
|
{
|
||||||
std::shared_ptr<RouteList const> r = routes.reader ();
|
std::shared_ptr<RouteList const> r = routes.reader ();
|
||||||
for (auto const& i : *r) {
|
for (auto const& i : *r) {
|
||||||
|
if (!i->active ()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
samplecnt_t route_offset = i->playback_latency ();
|
samplecnt_t route_offset = i->playback_latency ();
|
||||||
if (_remaining_latency_preroll > route_offset + ns) {
|
if (_remaining_latency_preroll > route_offset + ns) {
|
||||||
/* route will no-roll for complete pre-roll cycle */
|
/* route will no-roll for complete pre-roll cycle */
|
||||||
|
Loading…
Reference in New Issue
Block a user