spu: remove some hacks
authornotaz <notasas@gmail.com>
Thu, 18 Dec 2014 21:47:06 +0000 (23:47 +0200)
committernotaz <notasas@gmail.com>
Sat, 20 Dec 2014 00:57:25 +0000 (02:57 +0200)
plugins/dfsound/registers.c
plugins/dfsound/spu.c

index 730c753..20a7c14 100644 (file)
@@ -153,9 +153,6 @@ 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
       goto rvbd;\r
index 3d598db..d2eed13 100644 (file)
@@ -780,7 +780,6 @@ void do_samples(unsigned int cycles_to)
      {
       //xprintf("decoder irq %x\n", decode_pos);
       do_irq();
-      ns_to = left;
      }
    }