spu: finish offload code to TI C64x DSP
[pcsx_rearmed.git] / plugins / dfsound / registers.c
index f6da131..7a49b1c 100644 (file)
@@ -498,7 +498,8 @@ static void SetPitch(int ch,unsigned short val)               // SET PITCH
  spu.s_chan[ch].iRawPitch=NP;\r
  spu.s_chan[ch].sinc=(NP<<4)|8;\r
  spu.s_chan[ch].sinc_inv=0;\r
- if(spu_config.iUseInterpolation==1) spu.s_chan[ch].SB[32]=1; // -> freq change in simple interpolation mode: set flag\r
+ if (spu_config.iUseInterpolation == 1)\r
+  spu.SB[ch * SB_SIZE + 32] = 1; // -> freq change in simple interpolation mode: set flag\r
 }\r
 \r
 ////////////////////////////////////////////////////////////////////////\r