mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-02 09:11:16 +02:00
fix a glaring omission - actually move the audioInjector to QThread
This commit is contained in:
parent
a61e214c9a
commit
a4f2735739
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ void AudioScriptingInterface::playSound(Sound* sound, const AudioInjectorOptions
|
||||||
|
|
||||||
QThread* injectorThread = new QThread();
|
QThread* injectorThread = new QThread();
|
||||||
|
|
||||||
|
injector->moveToThread(injectorThread);
|
||||||
|
|
||||||
// start injecting when the injector thread starts
|
// start injecting when the injector thread starts
|
||||||
connect(injectorThread, SIGNAL(started()), injector, SLOT(injectAudio()));
|
connect(injectorThread, SIGNAL(started()), injector, SLOT(injectAudio()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue