spu: some refactoring for upcoming optimization attempt
[pcsx_rearmed.git] / plugins / dfsound / registers.c
index 19a0a46..c36c27e 100644 (file)
@@ -168,7 +168,7 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val)
      case 14:                                          // loop?\r
        //WaitForSingleObject(s_chan[ch].hMutex,2000);        // -> no multithread fuckups\r
        s_chan[ch].pLoop=spuMemC+((unsigned long)((val<<3)&~0xf));\r
-       s_chan[ch].bIgnoreLoop=1;\r
+       //s_chan[ch].bIgnoreLoop=1;\r
        //ReleaseMutex(s_chan[ch].hMutex);                    // -> oki, on with the thread\r
        break;\r
      //------------------------------------------------//\r
@@ -376,7 +376,6 @@ unsigned short CALLBACK SPUreadRegister(unsigned long reg)
      case 14:                                          // get loop address\r
       {\r
        const int ch=(r>>4)-0xc0;\r
-       if(s_chan[ch].pLoop==NULL) return 0;\r
        return (unsigned short)((s_chan[ch].pLoop-spuMemC)>>3);\r
       }\r
     }\r