| @@ -1831,9 +1831,12 @@ public: | |||||
| topologyChanged (UpdateKind::sync); | topologyChanged (UpdateKind::sync); | ||||
| } | } | ||||
| void rebuild() | |||||
| void rebuild (UpdateKind updateKind) | |||||
| { | { | ||||
| if (MessageManager::getInstance()->isThisTheMessageThread()) | |||||
| if (updateKind == UpdateKind::none) | |||||
| return; | |||||
| if (updateKind == UpdateKind::sync && MessageManager::getInstance()->isThisTheMessageThread()) | |||||
| handleAsyncUpdate(); | handleAsyncUpdate(); | ||||
| else | else | ||||
| triggerAsyncUpdate(); | triggerAsyncUpdate(); | ||||
| @@ -1895,11 +1898,7 @@ private: | |||||
| void topologyChanged (UpdateKind updateKind) | void topologyChanged (UpdateKind updateKind) | ||||
| { | { | ||||
| owner->sendChangeMessage(); | owner->sendChangeMessage(); | ||||
| if (updateKind == UpdateKind::sync && MessageManager::getInstance()->isThisTheMessageThread()) | |||||
| handleAsyncUpdate(); | |||||
| else | |||||
| triggerAsyncUpdate(); | |||||
| rebuild (updateKind); | |||||
| } | } | ||||
| void handleAsyncUpdate() override | void handleAsyncUpdate() override | ||||
| @@ -1959,7 +1958,7 @@ AudioProcessorGraph::Node* AudioProcessorGraph::getNodeForId (NodeID x) const | |||||
| bool AudioProcessorGraph::disconnectNode (NodeID nodeID, UpdateKind updateKind) { return pimpl->disconnectNode (nodeID, updateKind); } | bool AudioProcessorGraph::disconnectNode (NodeID nodeID, UpdateKind updateKind) { return pimpl->disconnectNode (nodeID, updateKind); } | ||||
| void AudioProcessorGraph::releaseResources() { return pimpl->releaseResources(); } | void AudioProcessorGraph::releaseResources() { return pimpl->releaseResources(); } | ||||
| bool AudioProcessorGraph::removeIllegalConnections (UpdateKind updateKind) { return pimpl->removeIllegalConnections (updateKind); } | bool AudioProcessorGraph::removeIllegalConnections (UpdateKind updateKind) { return pimpl->removeIllegalConnections (updateKind); } | ||||
| void AudioProcessorGraph::rebuild() { return pimpl->rebuild(); } | |||||
| void AudioProcessorGraph::rebuild() { return pimpl->rebuild (UpdateKind::sync); } | |||||
| void AudioProcessorGraph::reset() { return pimpl->reset(); } | void AudioProcessorGraph::reset() { return pimpl->reset(); } | ||||
| bool AudioProcessorGraph::canConnect (const Connection& c) const { return pimpl->canConnect (c); } | bool AudioProcessorGraph::canConnect (const Connection& c) const { return pimpl->canConnect (c); } | ||||
| bool AudioProcessorGraph::isConnected (const Connection& c) const noexcept { return pimpl->isConnected (c); } | bool AudioProcessorGraph::isConnected (const Connection& c) const noexcept { return pimpl->isConnected (c); } | ||||