mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:18:36 +02:00
wait for audio thread to quit on application exit
This commit is contained in:
parent
0e3cb11863
commit
6bbd944b6a
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
||||||
}
|
}
|
||||||
|
|
||||||
Application::~Application() {
|
Application::~Application() {
|
||||||
|
// ask the audio thread to quit and wait until it is done
|
||||||
|
_audio.thread()->quit();
|
||||||
|
_audio.thread()->wait();
|
||||||
|
|
||||||
storeSizeAndPosition();
|
storeSizeAndPosition();
|
||||||
NodeList::getInstance()->removeHook(&_voxels);
|
NodeList::getInstance()->removeHook(&_voxels);
|
||||||
NodeList::getInstance()->removeHook(this);
|
NodeList::getInstance()->removeHook(this);
|
||||||
|
|
Loading…
Reference in a new issue