all repos — mgba @ 900dc3c13f1f062126d5dae14d4f4d4ce5ef97b4

mGBA Game Boy Advance Emulator

GBA Audio: Properly initialize audio FIFO channels
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Jan 2015 20:49:00 -0800
commit

900dc3c13f1f062126d5dae14d4f4d4ce5ef97b4

parent

c2040a1f63dcbedb9a16a17ae174858523a77151

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

jump to
M CHANGESCHANGES

@@ -60,6 +60,7 @@ - GBA BIOS: Fix BIOS prefetch after reset

- GBA Memory: Fix alignment of open bus 8- and 16-bit loads - GBA BIOS: Fix HuffUnComp boundary conditions - GBA Video: Fix mode 0 being able to read tiles above appropriate tile range + - GBA Audio: Properly initialize audio FIFO channels Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -53,8 +53,8 @@ audio->ch1 = (struct GBAAudioChannel1) { .envelope = { .nextStep = INT_MAX }, .nextSweep = INT_MAX };

audio->ch2 = (struct GBAAudioChannel2) { .envelope = { .nextStep = INT_MAX } }; audio->ch3 = (struct GBAAudioChannel3) { .bank = { .bank = 0 } }; audio->ch4 = (struct GBAAudioChannel4) { .envelope = { .nextStep = INT_MAX } }; - audio->chA.dmaSource = 0; - audio->chB.dmaSource = 0; + audio->chA.dmaSource = 1; + audio->chB.dmaSource = 2; audio->chA.sample = 0; audio->chB.sample = 0; audio->eventDiff = 0;