mirror of https://github.com/mgba-emu/mgba.git
GBA Audio: Force audio DMAs to not increment destination
This commit is contained in:
parent
f388d65f5f
commit
d175a0ac85
1
CHANGES
1
CHANGES
|
@ -21,6 +21,7 @@ Misc:
|
|||
- Qt: Make -g flag work in Qt build
|
||||
- Qt: Simplify OpenGL context creation
|
||||
- Debugger: Support register and memory writes via GDB stub
|
||||
- GBA Audio: Force audio DMAs to not increment destination
|
||||
|
||||
0.4.1: (2016-07-11)
|
||||
Bugfixes:
|
||||
|
|
|
@ -126,12 +126,6 @@ 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;
|
||||
}
|
||||
|
@ -262,6 +256,7 @@ void GBAAudioSampleFIFO(struct GBAAudio* audio, int fifoId, int32_t cycles) {
|
|||
dma->nextCount = 4;
|
||||
dma->nextEvent = 0;
|
||||
dma->reg = GBADMARegisterSetWidth(dma->reg, 1);
|
||||
dma->reg = GBADMARegisterSetDestControl(dma->reg, 2);
|
||||
GBAMemoryUpdateDMAs(audio->p, -cycles);
|
||||
} else {
|
||||
channel->dmaSource = 0;
|
||||
|
|
Loading…
Reference in New Issue