mirror of https://github.com/mgba-emu/mgba.git
Qt: Ensure audio processor is paused before closing thread
This commit is contained in:
parent
473ae29d82
commit
7bc6c579ce
|
@ -641,6 +641,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);
|
||||||
|
|
||||||
if (m_tileCache) {
|
if (m_tileCache) {
|
||||||
|
|
Loading…
Reference in New Issue