spu: add decode buffer and reverb read handling
[pcsx_rearmed.git] / plugins / dfsound / registers.c
index 45df2eb..54e4000 100644 (file)
@@ -212,6 +212,9 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val)
          {\r
           rvb.StartAddr=(unsigned long)val<<2;\r
           rvb.CurrAddr=rvb.StartAddr;\r
+          // sync-with-decode-buffers hack..\r
+          if(rvb.StartAddr==0x3ff00)\r
+            rvb.CurrAddr+=decode_pos/2;\r
          }\r
        }\r
       rvb.dirty = 1;\r