mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix threading issues shutting down game audio
This commit is contained in:
parent
19d0ca3b8b
commit
7784ecb2c5
|
@ -174,7 +174,7 @@ GameController::GameController(QObject* parent)
|
||||||
controller->m_patch = QString();
|
controller->m_patch = QString();
|
||||||
controller->clearOverride();
|
controller->clearOverride();
|
||||||
|
|
||||||
controller->m_audioProcessor->pause();
|
QMetaObject::invokeMethod(controller->m_audioProcessor, "pause");
|
||||||
|
|
||||||
QMetaObject::invokeMethod(controller, "gameStopped", Q_ARG(mCoreThread*, context));
|
QMetaObject::invokeMethod(controller, "gameStopped", Q_ARG(mCoreThread*, context));
|
||||||
QMetaObject::invokeMethod(controller, "cleanGame");
|
QMetaObject::invokeMethod(controller, "cleanGame");
|
||||||
|
|
Loading…
Reference in New Issue