mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 08:13:44 +02:00
block until audio IO stops on app quit
This commit is contained in:
parent
dbe4b6ccc0
commit
f116d0bf5d
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ Application::~Application() {
|
|||
Audio::SharedPointer audioIO = DependencyManager::get<Audio>();
|
||||
|
||||
// stop the audio process
|
||||
QMetaObject::invokeMethod(audioIO.data(), "stop");
|
||||
QMetaObject::invokeMethod(audioIO.data(), "stop", Qt::BlockingQueuedConnection);
|
||||
|
||||
// ask the audio thread to quit and wait until it is done
|
||||
audioIO->thread()->quit();
|
||||
|
|
Loading…
Reference in a new issue