spu: rvb volume is signed
authornotaz <notasas@gmail.com>
Sun, 15 Oct 2023 20:10:16 +0000 (23:10 +0300)
committernotaz <notasas@gmail.com>
Sun, 15 Oct 2023 20:22:59 +0000 (23:22 +0300)
notaz/pcsx_rearmed#316

plugins/dfsound/registers.c

index 6f06ffc..b862026 100644 (file)
@@ -167,11 +167,11 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val,
       goto upd_irq;\r
     //-------------------------------------------------//\r
     case H_SPUrvolL:\r
-      spu.rvb->VolLeft=val;\r
+      spu.rvb->VolLeft = (int16_t)val;\r
       break;\r
     //-------------------------------------------------//\r
     case H_SPUrvolR:\r
-      spu.rvb->VolRight=val;\r
+      spu.rvb->VolRight = (int16_t)val;\r
       break;\r
     //-------------------------------------------------//\r
 \r