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 | // write audio packet to AudioMixer nodes | 521 | // write audio packet to AudioMixer nodes |
| 522 | NodeList* nodeList = NodeList::getInstance(); | 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 | // only send to nodes of type AudioMixer | 528 | // only send to nodes of type AudioMixer |
| 525 | if (node->getType() == NodeType::AudioMixer) { | 529 | if (node->getType() == NodeType::AudioMixer) { |
| 526 | // pack sequence number | 530 | // pack sequence number |