From: notaz Date: Sun, 15 Oct 2023 20:10:16 +0000 (+0300) Subject: spu: rvb volume is signed X-Git-Tag: r24l~124 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986293e0047156108e422c6272b333180ff48c35;p=pcsx_rearmed.git spu: rvb volume is signed notaz/pcsx_rearmed#316 --- 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; //-------------------------------------------------//