From 4ccd0fb2874dab39c9db8ab973d4db9b8d54fa0d Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 1 Jan 2015 19:35:16 +0200 Subject: [PATCH 1/1] spu: move more things to StartSound --- plugins/dfsound/registers.c | 7 ------- plugins/dfsound/spu.c | 8 ++++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index 210adb2d..8e4956e7 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -362,16 +362,9 @@ static void SoundOn(int start,int end,unsigned short val) { if((val&1) && regAreaGet(ch,6)) // mmm... start has to be set before key on !?! { - // do this here, not in StartSound - // - fixes fussy timing issues - s_chan[ch].bStop=0; s_chan[ch].pCurr=spu.spuMemC+((regAreaGet(ch,6)&~1)<<3); // must be block aligned s_chan[ch].pLoop=spu.spuMemC+((regAreaGet(ch,14)&~1)<<3); - s_chan[ch].prevflags=2; - spu.dwNewChannel|=(1<