GB Audio: Fix mode 3 playback
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Feb 2016 10:32:20 -0800
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
src/gb/audio.c
→
src/gb/audio.c
@@ -804,11 +804,10 @@ default:
++ch->window; ch->window &= 0x1F; ch->sample = ch->wavedata8[ch->window >> 1]; - if (ch->window & 1) { - ch->sample &= 0xF; - } else { + if (!(ch->window & 1)) { ch->sample >>= 4; } + ch->sample &= 0xF; break; case GB_AUDIO_GBA: if (ch->size) {