GB Audio: Fix initial sweep state

This commit is contained in:
Vicki Pfau 2020-08-10 18:07:39 -07:00
parent 83397d5618
commit 4880a1e041
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
0.8.4: (Future)
Emulation fixes:
- GB Audio: Fix initial sweep state
- GBA Video: Invalidate map cache when modifying BGCNT (fixes mgba.io/i/1846)
Other fixes:
- 3DS: Redo video sync to be more precise

View File

@ -117,7 +117,7 @@ void GBAudioReset(struct GBAudio* audio) {
if (audio->style == GB_AUDIO_GBA) {
mTimingSchedule(audio->timing, &audio->frameEvent, 0);
}
audio->ch1 = (struct GBAudioSquareChannel) { .envelope = { .dead = 2 } };
audio->ch1 = (struct GBAudioSquareChannel) { .sweep = { .time = 8 }, .envelope = { .dead = 2 } };
audio->ch2 = (struct GBAudioSquareChannel) { .envelope = { .dead = 2 } };
audio->ch3 = (struct GBAudioWaveChannel) { .bank = 0 };
audio->ch4 = (struct GBAudioNoiseChannel) { .nSamples = 0 };