X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fregisters.c;fp=plugins%2Fdfsound%2Fregisters.c;h=7a49b1ca5fc2279fde1f1911d40d18105514dffd;hp=f6da131d51b003fda51ac57da491838338dc84ed;hb=de4a0279efefdd2e4595c8fc27f1564f4bff9341;hpb=5514a050f4e936f5c333fa1271b11bf5a6a9ea39 diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index f6da131d..7a49b1ca 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -498,7 +498,8 @@ static void SetPitch(int ch,unsigned short val) // SET PITCH spu.s_chan[ch].iRawPitch=NP; spu.s_chan[ch].sinc=(NP<<4)|8; spu.s_chan[ch].sinc_inv=0; - if(spu_config.iUseInterpolation==1) spu.s_chan[ch].SB[32]=1; // -> freq change in simple interpolation mode: set flag + if (spu_config.iUseInterpolation == 1) + spu.SB[ch * SB_SIZE + 32] = 1; // -> freq change in simple interpolation mode: set flag } ////////////////////////////////////////////////////////////////////////