mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix sporadic crash when deinitializing audio
This commit is contained in:
parent
c82ee873e1
commit
fcd1ce8073
1
CHANGES
1
CHANGES
|
@ -29,6 +29,7 @@ Bugfixes:
|
||||||
- Util: Fix realloc semantics in utf16to8
|
- Util: Fix realloc semantics in utf16to8
|
||||||
- ARM7: Fix setting spsr privilege bits when spsr is empty
|
- ARM7: Fix setting spsr privilege bits when spsr is empty
|
||||||
- GBA BIOS: Fix ArcTan2 accuracy and boundary conditions
|
- GBA BIOS: Fix ArcTan2 accuracy and boundary conditions
|
||||||
|
- SDL: Fix sporadic crash when deinitializing audio
|
||||||
Misc:
|
Misc:
|
||||||
- GBA: Slightly optimize GBAProcessEvents
|
- GBA: Slightly optimize GBAProcessEvents
|
||||||
- Qt: Add preset for DualShock 4
|
- Qt: Add preset for DualShock 4
|
||||||
|
|
|
@ -185,6 +185,7 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) {
|
||||||
#endif
|
#endif
|
||||||
if (mCoreThreadStart(&thread)) {
|
if (mCoreThreadStart(&thread)) {
|
||||||
renderer->runloop(renderer, &thread);
|
renderer->runloop(renderer, &thread);
|
||||||
|
mSDLPauseAudio(&renderer->audio);
|
||||||
mCoreThreadJoin(&thread);
|
mCoreThreadJoin(&thread);
|
||||||
} else {
|
} else {
|
||||||
didFail = true;
|
didFail = true;
|
||||||
|
|
Loading…
Reference in New Issue