From: notaz Date: Sat, 10 Sep 2022 13:46:05 +0000 (+0300) Subject: spu: fix wrong volume shift X-Git-Tag: r24~313 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaa5336dc779b706fa5a49fdec3eaa5c829113d3;p=pcsx_rearmed.git spu: fix wrong volume shift libretro/pcsx_rearmed#685 --- diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index f4426abe..66c7651e 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -1193,13 +1193,13 @@ static void do_samples_finish(int *SSumLR, int ns_to, for (ns = 0; ns < ns_to * 2; ) { d = SSumLR[ns]; SSumLR[ns] = 0; - d = d * vol_l >> 15; + d = d * vol_l >> 14; ssat32_to_16(d); *spu.pS++ = d; ns++; d = SSumLR[ns]; SSumLR[ns] = 0; - d = d * vol_r >> 15; + d = d * vol_r >> 14; ssat32_to_16(d); *spu.pS++ = d; ns++;