History

Revise scriptable resource caches' interfaces

David Rowe committed 8 years ago

Commit baf88ab1 parent 16e06de15 files · +54 −54Browse files

Showing the changes to libraries/audio/src/SoundCacheScriptingInterface.cpp (1 of 15 files). Show all

Unified · Split

libraries/audio/src/SoundCacheScriptingInterface.cpp+3−4
@@ -11,11 +11,10 @@ · 10 unmodified lines
11 11
12#include "SoundCacheScriptingInterface.h"12#include "SoundCacheScriptingInterface.h"
13 13
14SoundCacheScriptingInterface::SoundCacheScriptingInterface(SoundCache* soundCache) :14SoundCacheScriptingInterface::SoundCacheScriptingInterface() :
15 _soundCache(soundCache),15 ScriptableResourceCache::ScriptableResourceCache(DependencyManager::get<SoundCache>())
16 ScriptableResourceCache::ScriptableResourceCache(soundCache)
17{ }16{ }
18 17
19SharedSoundPointer SoundCacheScriptingInterface::getSound(const QUrl& url) {18SharedSoundPointer SoundCacheScriptingInterface::getSound(const QUrl& url) {
20 return _soundCache->getSound(url);19 return DependencyManager::get<SoundCache>()->getSound(url);
21}20}