all repos — mgba @ d6e466dda10c2ec7361445e01338ed038811eb11

mGBA Game Boy Advance Emulator

Fix pitch of channel 3
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Oct 2013 16:04:22 -0700
commit

d6e466dda10c2ec7361445e01338ed038811eb11

parent

76266a4ee7325ec1802c10bf71748f07f7a6fb23

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

jump to
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -434,7 +434,7 @@ ch->wavedata[i] |= bitsCarry >> 28;

bitsCarry = bits; } ch->sample = ((bitsCarry >> 26) - 0x20) * volume; - return 16 * (2048 - ch->control.rate); + return 8 * (2048 - ch->control.rate); } static int32_t _updateChannel4(struct GBAAudioChannel4* ch) {