Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 42 files). Show all
Unified · Split
| @@ -359,7 +359,7 @@ void ScriptEngine::run() { · 358 unmodified lines | ||
| 359 | 359 | |
| 360 | 360 | int thisFrame = 0; |
| 361 | 361 | |
| 362 | − NodeList* nodeList = NodeList::getInstance(); | |
| 362 | + auto nodeList = DependencyManager::get<NodeList>(); | |
| 363 | 363 | |
| 364 | 364 | qint64 lastUpdate = usecTimestampNow(); |
| 365 | 365 | |
| @@ -483,7 +483,7 @@ void ScriptEngine::run() { · 117 unmodified lines | ||
| 483 | 483 | } |
| 484 | 484 | |
| 485 | 485 | // write audio packet to AudioMixer nodes |
| 486 | − NodeList* nodeList = NodeList::getInstance(); | |
| 486 | + auto nodeList = DependencyManager::get<NodeList>(); | |
| 487 | 487 | nodeList->eachNode([this, &nodeList, &audioPacket, &numPreSequenceNumberBytes](const SharedNodePointer& node){ |
| 488 | 488 | // only send to nodes of type AudioMixer |
| 489 | 489 | if (node->getType() == NodeType::AudioMixer) { |