all repos — mgba @ 1dbecb2c645d2858abae79a18846e2f5126a3d62

mGBA Game Boy Advance Emulator

Initialize FIFO samples
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Oct 2014 23:40:26 -0700
commit

1dbecb2c645d2858abae79a18846e2f5126a3d62

parent

3bf43133cb64a020a6fbfdcc5bbbcf2c4b334a4e

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

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

@@ -40,6 +40,8 @@ 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.sample = 0; + audio->chB.sample = 0; audio->eventDiff = 0; audio->nextSample = 0; audio->sampleRate = 0x8000;