Showing the changes to libraries/audio/src/SoundCacheScriptingInterface.cpp (1 of 15 files). Show all
Unified · Split
| @@ -11,11 +11,10 @@ · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | #include "SoundCacheScriptingInterface.h" |
| 13 | 13 | |
| 14 | −SoundCacheScriptingInterface::SoundCacheScriptingInterface(SoundCache* soundCache) : | |
| 15 | − _soundCache(soundCache), | |
| 16 | − ScriptableResourceCache::ScriptableResourceCache(soundCache) | |
| 14 | +SoundCacheScriptingInterface::SoundCacheScriptingInterface() : | |
| 15 | + ScriptableResourceCache::ScriptableResourceCache(DependencyManager::get<SoundCache>()) | |
| 17 | 16 | { } |
| 18 | 17 | |
| 19 | 18 | SharedSoundPointer SoundCacheScriptingInterface::getSound(const QUrl& url) { |
| 20 | − return _soundCache->getSound(url); | |
| 19 | + return DependencyManager::get<SoundCache>()->getSound(url); | |
| 21 | 20 | } |