Mixer functions cleanup, new flatten 'Embed in new' session

This commit is contained in:
Bruno Herbelin
2022-03-22 00:20:41 +01:00
parent 3effdd1408
commit a80074dc21
9 changed files with 113 additions and 56 deletions

View File

@@ -834,7 +834,7 @@ void Control::sendSourcesStatus(const IpEndpointName &remoteEndpoint, osc::Recei
int i = 0;
char oscaddr[128];
int index_current = Mixer::manager().indexCurrentSource();
for (; i < Mixer::manager().count(); ++i) {
for (; i < Mixer::manager().numSource(); ++i) {
// send status of currently selected
sprintf(oscaddr, OSC_PREFIX OSC_CURRENT "/%d", i);
p << osc::BeginMessage( oscaddr ) << (index_current == i ? 1.f : 0.f) << osc::EndMessage;