mirror of https://github.com/mgba-emu/mgba.git
GBA Audio: Reset audio FIFO DMA if an invalid destination is set
This commit is contained in:
parent
fcd1ce8073
commit
6fe17bc0f8
1
CHANGES
1
CHANGES
|
@ -30,6 +30,7 @@ Bugfixes:
|
|||
- ARM7: Fix setting spsr privilege bits when spsr is empty
|
||||
- GBA BIOS: Fix ArcTan2 accuracy and boundary conditions
|
||||
- SDL: Fix sporadic crash when deinitializing audio
|
||||
- GBA Audio: Reset audio FIFO DMA if an invalid destination is set
|
||||
Misc:
|
||||
- GBA: Slightly optimize GBAProcessEvents
|
||||
- Qt: Add preset for DualShock 4
|
||||
|
|
|
@ -126,6 +126,12 @@ void GBAAudioScheduleFifoDma(struct GBAAudio* audio, int number, struct GBADMA*
|
|||
audio->chB.dmaSource = number;
|
||||
break;
|
||||
default:
|
||||
if (audio->chA.dmaSource == number) {
|
||||
audio->chA.dmaSource = -1;
|
||||
}
|
||||
if (audio->chB.dmaSource == number) {
|
||||
audio->chB.dmaSource = -1;
|
||||
}
|
||||
mLOG(GBA_AUDIO, GAME_ERROR, "Invalid FIFO destination: 0x%08X", info->dest);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue