Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 16 files). Show all
Unified · Split
| @@ -520,7 +520,11 @@ void ScriptEngine::run() { · 519 unmodified lines | ||
| 520 | 520 | |
| 521 | 521 | // write audio packet to AudioMixer nodes |
| 522 | 522 | NodeList* nodeList = NodeList::getInstance(); |
| 523 | − foreach(const SharedNodePointer& node, nodeList->getNodeHash()) { | |
| 523 | + NodeHashSnapshot snapshotHash = nodeList->getNodeHash().snapshot_table(); | |
| 524 | + | |
| 525 | + for (auto it = snapshotHash.begin(); it != snapshotHash.end(); it++) { | |
| 526 | + SharedNodePointer node = it->second; | |
| 527 | + | |
| 524 | 528 | // only send to nodes of type AudioMixer |
| 525 | 529 | if (node->getType() == NodeType::AudioMixer) { |
| 526 | 530 | // pack sequence number |