From b00afb7734d75d4e625db0263548fa15b9aa0af7 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 9 Feb 2011 14:34:15 +0200 Subject: dfsound: backport fixes from pcsxr shalma: - Align start addresses to 16-bytes - (Hopkat) registers.c - External loop address align to 16 bytes - SoundOff prevents new channel from starting - fixes Jungle Book (buzzing loop hangs) --- plugins/dfsound/spu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/dfsound/spu.c') diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index 7e6cfb2..8936e45 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -245,15 +245,16 @@ INLINE void StartSound(int ch) StartADSR(ch); StartREVERB(ch); - s_chan[ch].pCurr=s_chan[ch].pStart; // set sample start + // fussy timing issues - do in VoiceOn + //s_chan[ch].pCurr=s_chan[ch].pStart; // set sample start + //s_chan[ch].bStop=0; + //s_chan[ch].bOn=1; s_chan[ch].s_1=0; // init mixing vars s_chan[ch].s_2=0; s_chan[ch].iSBPos=28; s_chan[ch].bNew=0; // init channel flags - s_chan[ch].bStop=0; - s_chan[ch].bOn=1; s_chan[ch].SB[29]=0; // init our interpolation helpers s_chan[ch].SB[30]=0; -- cgit v1.2.3