From 22d4010a04b2b8fbbdc4a77599cd0fdc6e306570 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 27 Sep 2019 13:33:39 +0200 Subject: [PATCH] Removed an incorrect extra shift by 4 from three CT1345 mixer compatibility registers, fixes #340. --- src/sound/snd_sb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sound/snd_sb.c b/src/sound/snd_sb.c index 66fe11520..b16078467 100644 --- a/src/sound/snd_sb.c +++ b/src/sound/snd_sb.c @@ -8,14 +8,14 @@ * * Sound Blaster emulation. * - * Version: @(#)sound_sb.c 1.0.15 2018/10/26 + * Version: @(#)sound_sb.c 1.0.16 2019/09/27 * * Authors: Sarah Walker, * Miran Grca, * TheCollector1995, * - * Copyright 2008-2017 Sarah Walker. - * Copyright 2016,2017 Miran Grca. + * Copyright 2008-2019 Sarah Walker. + * Copyright 2016-2019 Miran Grca. */ #include #include @@ -583,7 +583,7 @@ void sb_ct1345_mixer_write(uint16_t addr, uint8_t val, void *p) { /* Compatibility: chain registers 0x02 and 0x22 as well as 0x06 and 0x26 */ case 0x02: case 0x06: case 0x08: - mixer->regs[mixer->index+0x20]=((val&0xE) << 4)|(val&0xE) << 4; + mixer->regs[mixer->index+0x20]=((val&0xE) << 4)|(val&0xE); break; case 0x22: case 0x26: case 0x28: