From de41998a390c2dc03bdc8db2a3060bf5a5e24b06 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 15 Oct 2023 23:10:16 +0300 Subject: [PATCH] spu: rvb volume is signed notaz/pcsx_rearmed#316 --- plugins/dfsound/registers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index 6f06ffce..b8620268 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -167,11 +167,11 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val, goto upd_irq; //-------------------------------------------------// case H_SPUrvolL: - spu.rvb->VolLeft=val; + spu.rvb->VolLeft = (int16_t)val; break; //-------------------------------------------------// case H_SPUrvolR: - spu.rvb->VolRight=val; + spu.rvb->VolRight = (int16_t)val; break; //-------------------------------------------------// -- 2.39.5