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=54e4000f767de70a578d7872ae790267d39abfec;hp=45df2ebc8b114e31735403c35bc04f9c54e654f8;hb=b72f17a1320e9038c8416343ce270b0f676c757c;hpb=e4f075af4e4ba79332c72809d3bb4ba6e2895253 diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index 45df2ebc..54e4000f 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -212,6 +212,9 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val) { rvb.StartAddr=(unsigned long)val<<2; rvb.CurrAddr=rvb.StartAddr; + // sync-with-decode-buffers hack.. + if(rvb.StartAddr==0x3ff00) + rvb.CurrAddr+=decode_pos/2; } } rvb.dirty = 1;