X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fspu.c;h=d7dc1b6441fb60587fcd55a0df11701ce36b1ed6;hp=b3bd0579d5e11cdf042b633b21812fa9491c3df2;hb=76d1d09c1224af8d663ce63dc5b32425bd62cb29;hpb=2f546f9ace7c7e4b0957aff512dc0616b01b3976 diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index b3bd0579..d7dc1b64 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -222,9 +222,10 @@ INLINE void InterpolateUp(int ch) s_chan[ch].SB[32]=0; s_chan[ch].SB[28]=(s_chan[ch].SB[28]*s_chan[ch].sinc)/0x20000L; - if(s_chan[ch].sinc<=0x8000) - s_chan[ch].SB[29]=s_chan[ch].SB[30]-(s_chan[ch].SB[28]*((0x10000/s_chan[ch].sinc)-1)); - else s_chan[ch].SB[29]+=s_chan[ch].SB[28]; + //if(s_chan[ch].sinc<=0x8000) + // s_chan[ch].SB[29]=s_chan[ch].SB[30]-(s_chan[ch].SB[28]*((0x10000/s_chan[ch].sinc)-1)); + //else + s_chan[ch].SB[29]+=s_chan[ch].SB[28]; } else // no flags? add bigger val (if possible), calc smaller step, set flag1 s_chan[ch].SB[29]+=s_chan[ch].SB[28];