all repos — mgba @ 72a0de2940d83496a0ce1798c1191c9f6762bafa

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

72a0de2940d83496a0ce1798c1191c9f6762bafa

parent

8266f54d7674ec7fdbe263efea163481c8b33571

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

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

@@ -1259,7 +1259,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;