Initialize FIFO samples
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Oct 2014 23:40:26 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-audio.c
→
src/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;