From: notaz Date: Sat, 10 Sep 2022 13:46:05 +0000 (+0300) Subject: spu: fix wrong volume shift X-Git-Tag: r24l~392 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e29eaeb9b0719afb9196c9c22aee294617ed5341;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 e951b494..3b4c051d 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++;