GBA Memory: Fix audio regression...may be a huge hack
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Apr 2015 00:54:03 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/memory.c
→
src/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;