Qt: Fix audio context holding onto closed game controller

This commit is contained in:
Vicki Pfau 2019-02-16 16:54:41 -08:00
parent 063375806f
commit 5a08abacf1
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Bugfixes:
- GBA Memory: Fix a few AGBPrint crashes - GBA Memory: Fix a few AGBPrint crashes
- GBA Memory: Fix OOB ROM reads showing up as AGBPrint memory - GBA Memory: Fix OOB ROM reads showing up as AGBPrint memory
- GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293) - GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293)
- Qt: Fix audio context holding onto closed game controller
Misc: Misc:
- GBA Savedata: EEPROM performance fixes - GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -797,6 +797,11 @@ void Window::gameStopped() {
m_fpsTimer.stop(); m_fpsTimer.stop();
m_focusCheck.stop(); m_focusCheck.stop();
if (m_audioProcessor) {
m_audioProcessor->stop();
m_audioProcessor.reset();
}
emit paused(false); emit paused(false);
} }