all repos — mgba @ 7784ecb2c5dd24939fcac34743f3de34dab66718

mGBA Game Boy Advance Emulator

Qt: Fix threading issues shutting down game audio
Vicki Pfau vi@endrift.com
Fri, 07 Apr 2017 22:21:41 -0700
commit

7784ecb2c5dd24939fcac34743f3de34dab66718

parent

19d0ca3b8b63dd25c17539357d09a47b44d2e6db

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -174,7 +174,7 @@ }

controller->m_patch = QString(); controller->clearOverride(); - controller->m_audioProcessor->pause(); + QMetaObject::invokeMethod(controller->m_audioProcessor, "pause"); QMetaObject::invokeMethod(controller, "gameStopped", Q_ARG(mCoreThread*, context)); QMetaObject::invokeMethod(controller, "cleanGame");