Initialize FIFO samples

This commit is contained in:
Jeffrey Pfau 2014-10-17 23:40:26 -07:00
parent 3bf43133cb
commit 1dbecb2c64
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ void GBAAudioReset(struct GBAAudio* audio) {
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;