Run input meters, concurrently with cycle-start

This commit is contained in:
Robin Gareus 2021-02-03 02:32:10 +01:00
parent 4967787c24
commit 53507959d6
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1049,6 +1049,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 (&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); s->rt_tasklist()->process (tl);
} else { } else {
for (Ports::iterator p = _cycle_ports->begin(); p != _cycle_ports->end(); ++p) { for (Ports::iterator p = _cycle_ports->begin(); p != _cycle_ports->end(); ++p) {
@ -1056,6 +1057,7 @@ PortManager::cycle_start (pframes_t nframes, Session* s)
p->second->cycle_start (nframes); p->second->cycle_start (nframes);
} }
} }
run_input_meters (nframes, s ? s->nominal_sample_rate () : 0);
} }
} }