History

avoid Qt QTimer thread bug by putting SoundCache on same thread

Stephen Birarda committed 12 years ago

Commit e10d1321 parent a771f7211 files · +74 −61Browse files

Showing the changes to interface/src/Application.cpp (1 of 11 files). Show all

Unified · Split

interface/src/Application.cpp+2−0
@@ -65,6 +65,7 @@ · 64 unmodified lines
6565 #include <PacketHeaders.h>
6666 #include <PerfStat.h>
6767 #include <ResourceCache.h>
68+#include <SoundCache.h>
6869 #include <UserActivityLogger.h>
6970 #include <UUID.h>
7071
@@ -3916,6 +3917,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri · 3845 unmodified lines
39163917 scriptEngine->registerGlobalObject("Settings", SettingsScriptingInterface::getInstance());
39173918 scriptEngine->registerGlobalObject("AudioDevice", AudioDeviceScriptingInterface::getInstance());
39183919 scriptEngine->registerGlobalObject("AnimationCache", &_animationCache);
3920+ scriptEngine->registerGlobalObject("SoundCache", &SoundCache::getInstance());
39193921 scriptEngine->registerGlobalObject("AudioReflector", &_audioReflector);
39203922 scriptEngine->registerGlobalObject("Account", AccountScriptingInterface::getInstance());
39213923 scriptEngine->registerGlobalObject("Metavoxels", &_metavoxels);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t