From eaa5336dc779b706fa5a49fdec3eaa5c829113d3 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 10 Sep 2022 16:46:05 +0300 Subject: [PATCH] spu: fix wrong volume shift libretro/pcsx_rearmed#685 --- plugins/dfsound/spu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.39.5