Run input meters, concurrently with cycle-start

This commit is contained in:
Robin Gareus 2021-02-03 02:32:10 +01:00
parent 2efb7244fa
commit f7af89aeff
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1051,6 +1051,7 @@ PortManager::cycle_start (pframes_t nframes, Session* s)
tl.push_back (boost::bind (&Port::cycle_start, p->second, nframes));
}
}
tl.push_back (boost::bind (&PortManager::run_input_meters, this, nframes, s ? s->nominal_sample_rate () : 0));
s->rt_tasklist()->process (tl);
} else {
for (Ports::iterator p = _cycle_ports->begin(); p != _cycle_ports->end(); ++p) {
@ -1058,6 +1059,7 @@ PortManager::cycle_start (pframes_t nframes, Session* s)
p->second->cycle_start (nframes);
}
}
run_input_meters (nframes, s ? s->nominal_sample_rate () : 0);
}
}