Qt: Ensure audio processor is paused before closing thread

This commit is contained in:
Vicki Pfau 2017-04-09 23:34:23 -07:00
parent 52bc70ad73
commit 3ba2ce1ea9
1 changed files with 2 additions and 0 deletions

View File

@ -586,6 +586,8 @@ void GameController::cleanGame() {
if (!m_gameOpen || mCoreThreadIsActive(&m_threadContext)) { if (!m_gameOpen || mCoreThreadIsActive(&m_threadContext)) {
return; return;
} }
m_audioProcessor->pause();
mCoreThreadJoin(&m_threadContext); mCoreThreadJoin(&m_threadContext);
delete[] m_drawContext; delete[] m_drawContext;