Showing the changes to libraries/script-engine/src/AudioScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -57,7 +57,6 @@ AudioInjector* AudioScriptingInterface::invokedPlaySound(Sound* sound, const Aud · 56 unmodified lines | |||
| 57 | // connect the right slots and signals for AudioInjector and thread cleanup | 57 | // connect the right slots and signals for AudioInjector and thread cleanup |
| 58 | connect(injector, &AudioInjector::destroyed, injectorThread, &QThread::quit); | 58 | connect(injector, &AudioInjector::destroyed, injectorThread, &QThread::quit); |
| 59 | connect(injectorThread, &QThread::finished, injectorThread, &QThread::deleteLater); | 59 | connect(injectorThread, &QThread::finished, injectorThread, &QThread::deleteLater); |
| 60 | connect(injectorThread, &QThread::destroyed, this, &AudioScriptingInterface::threadDead); | ||
| 61 | 60 | ||
| 62 | injectorThread->start(); | 61 | injectorThread->start(); |
| 63 | 62 | ||
| @@ -68,7 +67,3 @@ AudioInjector* AudioScriptingInterface::invokedPlaySound(Sound* sound, const Aud · 4 unmodified lines | |||
| 68 | return NULL; | 67 | return NULL; |
| 69 | } | 68 | } |
| 70 | } | 69 | } |
| 71 | |||
| 72 | void AudioScriptingInterface::threadDead() { | ||
| 73 | qDebug() << "The audio thread has gone down"; | ||
| 74 | } | ||