mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +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();
|
||||
|
||||
injector->moveToThread(injectorThread);
|
||||
|
||||
// start injecting when the injector thread starts
|
||||
connect(injectorThread, SIGNAL(started()), injector, SLOT(injectAudio()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue