fix a glaring omission - actually move the audioInjector to QThread

This commit is contained in:
Stephen Birarda 2014-01-03 10:39:09 -08:00
parent a61e214c9a
commit a4f2735739

View file

@ -14,6 +14,8 @@ void AudioScriptingInterface::playSound(Sound* sound, const AudioInjectorOptions
QThread* injectorThread = new QThread();
injector->moveToThread(injectorThread);
// start injecting when the injector thread starts
connect(injectorThread, SIGNAL(started()), injector, SLOT(injectAudio()));