all repos — mgba @ 4360e73d1427312396135125efa45fe9aeb58175

mGBA Game Boy Advance Emulator

GB Audio: Fix mode 3 playback
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Feb 2016 10:32:20 -0800
commit

4360e73d1427312396135125efa45fe9aeb58175

parent

c2a7103d88e362b6330006e563d2520dd01ceead

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

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