all repos — mgba @ e9df5bc961c4429f35cc3e872ff696dca9ce4be1

mGBA Game Boy Advance Emulator

GBA Memory: Fix audio regression...may be a huge hack
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Apr 2015 00:54:03 -0700
commit

e9df5bc961c4429f35cc3e872ff696dca9ce4be1

parent

99ae62695e916917d3fe02bfd6ca7d6d2af8061f

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

jump to
M src/gba/memory.csrc/gba/memory.c

@@ -1254,7 +1254,8 @@ struct GBADMA* currentDma = &memory->dma[dma];

int wasEnabled = GBADMARegisterIsEnable(currentDma->reg); int oldTiming = GBADMARegisterGetTiming(currentDma->reg); int newTiming = GBADMARegisterGetTiming(control); - if (oldTiming && oldTiming != newTiming) { + // This is probably a huge hack...verify what this does on hardware + if (oldTiming && oldTiming != DMA_TIMING_CUSTOM && oldTiming != newTiming) { wasEnabled = false; } currentDma->reg = control;