GB Audio: Only reset channel 3 sample in DMG mode

This commit is contained in:
Vicki Pfau 2019-06-22 23:17:58 -07:00
parent f98da2ab3f
commit 68fc62073d
2 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Emulation fixes:
- GB I/O: Filter IE top bits properly (fixes mgba.io/i/1329)
- GBA Video: Fix wrapped sprite mosaic clamping (fixes mgba.io/i/1432)
- GBA Memory: Fix STM to VRAM (fixes mgba.io/i/1430)
- GB Audio: Only reset channel 3 sample in DMG mode
Other fixes:
- Qt: Fix some Qt display driver race conditions
- Core: Improved lockstep driver reliability (Le Hoang Quyen)

View File

@ -329,7 +329,9 @@ void GBAudioWriteNR34(struct GBAudio* audio, uint8_t value) {
}
}
audio->ch3.window = 0;
audio->ch3.sample = 0;
if (audio->style == GB_AUDIO_DMG) {
audio->ch3.sample = 0;
}
}
mTimingDeschedule(audio->timing, &audio->ch3Fade);
mTimingDeschedule(audio->timing, &audio->ch3Event);