X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fregisters.c;h=adc9c3a5466c6ba15672cbe6f0f5596a65693b2f;hp=badd0af063ad4f55eda1c659c6ef3869d6a83306;hb=4d66d894c6563cbfb78fe8ccc0b374809fc44b0d;hpb=a4621d435f84acf094a6601c3a444cc550f82929 diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index badd0af0..adc9c3a5 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -150,6 +150,8 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val, goto rvbd; //-------------------------------------------------// case H_SPUirqAddr: + //if (val & 1) + // log_unhandled("w irq with lsb: %08lx %04x\n", reg, val); spu.pSpuIrq=spu.spuMemC+(((unsigned long) val<<3)&~0xf); goto upd_irq; //-------------------------------------------------// @@ -505,7 +507,7 @@ static void SetPitch(int ch,unsigned short val) // SET PITCH spu.s_chan[ch].iRawPitch = NP; spu.s_chan[ch].sinc = NP << 4; spu.s_chan[ch].sinc_inv = 0; - spu.SB[ch * SB_SIZE + 32] = 1; // -> freq change in simple interpolation mode: set flag + spu.s_chan[ch].bNewPitch = 1; // don't mess spu.dwChannelsAudible as adsr runs independently }