all repos — mgba @ 68fc62073d2d6705613439c81d278c3070f1fa96

mGBA Game Boy Advance Emulator

GB Audio: Only reset channel 3 sample in DMG mode
Vicki Pfau vi@endrift.com
Sat, 22 Jun 2019 23:17:58 -0700
commit

68fc62073d2d6705613439c81d278c3070f1fa96

parent

f98da2ab3ff0a8c7171c256ead46f819536618e2

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -25,6 +25,7 @@ - GB Video: Fix window being enabled mid-scanline (fixes mgba.io/i/1328)

- 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)
M src/gb/audio.csrc/gb/audio.c

@@ -329,7 +329,9 @@ audio->ch3.wavedata8[3] = audio->ch3.wavedata8[((audio->ch3.window >> 1) & ~3) + 3];

} } 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);