Would it be possible to add to AudioProcessorGraph:
OwnedArray<Connection>& getConnections () { return connections; }
I mainly need this because, for some reason this does not work:
for (int i = 0; i < audioProcessorGraph->getNumConnections(); ++i)
{
audioProcessorGraph->removeConnection(i);
}
I get errors when trying to reconnect as the connection is still present.
But (with the above method added) this does:
audioProcessorGraph->getConnections().clear();
This issue would also be addressed by a clearConnections
method.
Maybe there is some other way to achieve what I’m trying to do? Basically, clearing all connections so that the graph nodes can be reconnected according to changed user settings.