GB Audio: Initialize ch3 window value

This commit is contained in:
Vicki Pfau 2022-12-07 20:56:16 -08:00
parent b220c7a68b
commit dc5f6e37e1
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ void GBAudioReset(struct GBAudio* audio) {
audio->ch3.wavedata8[13] = 0xFF; audio->ch3.wavedata8[13] = 0xFF;
audio->ch3.wavedata8[14] = 0x00; audio->ch3.wavedata8[14] = 0x00;
audio->ch3.wavedata8[15] = 0xFF; audio->ch3.wavedata8[15] = 0xFF;
audio->ch3.window = 0;
audio->ch4 = (struct GBAudioNoiseChannel) { .envelope = { .dead = 2 } }; audio->ch4 = (struct GBAudioNoiseChannel) { .envelope = { .dead = 2 } };
audio->frame = 0; audio->frame = 0;
audio->sampleInterval = SAMPLE_INTERVAL * GB_MAX_SAMPLES; audio->sampleInterval = SAMPLE_INTERVAL * GB_MAX_SAMPLES;