GB Audio: Fix mode 3 playback

This commit is contained in:
Jeffrey Pfau 2016-02-14 10:32:20 -08:00
parent c2a7103d88
commit 4360e73d14
1 changed files with 2 additions and 3 deletions

View File

@ -804,11 +804,10 @@ static int32_t _updateChannel3(struct GBAudioChannel3* ch, enum GBAudioStyle sty
++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) {