all repos — mgba @ cdd6d5a815c40b4f23f6f27b5f4645010d124689

mGBA Game Boy Advance Emulator

Initialize previous uninitialzed audio channel members
Jeffrey Pfau jeffrey@endrift.com
Fri, 29 Aug 2014 02:39:01 -0700
commit

cdd6d5a815c40b4f23f6f27b5f4645010d124689

parent

270c09c26e2b37c180fb60ceba094488230e12fd

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

jump to
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -48,6 +48,8 @@ audio->ch3.control.endTime = 0;

audio->ch3.sample = 0; audio->ch4.sample = 0; audio->ch4.envelope.nextStep = INT_MAX; + audio->chA.dmaSource = 0; + audio->chB.dmaSource = 0; audio->eventDiff = 0; audio->nextSample = 0; audio->sampleRate = 0x8000;