From a02dc3f33f8ac5ac22106e3417cac0d736628cd4 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 27 Jul 2011 01:31:21 +0300 Subject: [PATCH 1/1] spu: remove adsr stop prevention hack it's is not enough for Tron Bonne, so is not useful --- plugins/dfsound/adsr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/dfsound/adsr.c b/plugins/dfsound/adsr.c index 47eccb30..9884d624 100644 --- a/plugins/dfsound/adsr.c +++ b/plugins/dfsound/adsr.c @@ -79,10 +79,10 @@ INLINE int MixADSR(int ch) // MIX ADSR if(s_chan[ch].ADSRX.EnvelopeVol<0) { s_chan[ch].ADSRX.EnvelopeVol=0; - // don't stop if this chan can still cause irqs - if(!(spuCtrl&0x40) || (s_chan[ch].pCurr > pSpuIrq && s_chan[ch].pLoop > pSpuIrq)) - //s_chan[ch].bOn=0; - s_chan[ch].pCurr=(unsigned char *)-1; + // FIXME: don't stop if this chan can still cause irqs + //if(!(spuCtrl&0x40) || (s_chan[ch].pCurr > pSpuIrq && s_chan[ch].pLoop > pSpuIrq)) + //s_chan[ch].bOn=0; + dwChannelOn&=~(1<