From e29eaeb9b0719afb9196c9c22aee294617ed5341 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 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++; -- 2.39.5