aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/registers.c
diff options
context:
space:
mode:
authornotaz2011-09-21 04:03:48 +0300
committernotaz2011-09-21 04:03:48 +0300
commit174c454a98a71475b72958c9f76293af7d6fb502 (patch)
tree5b5d00d1e167f7957126cc9a754056add7801c3f /plugins/dfsound/registers.c
parent587fa7de9b496a0b7fa1d52d393733886602ca83 (diff)
downloadpcsx_rearmed-174c454a98a71475b72958c9f76293af7d6fb502.tar.gz
pcsx_rearmed-174c454a98a71475b72958c9f76293af7d6fb502.tar.bz2
pcsx_rearmed-174c454a98a71475b72958c9f76293af7d6fb502.zip
spu: get rid of pCurr -1, pass right chans to silent handler
pCurr -1 would work weird with savestates and could screw things up in general..
Diffstat (limited to 'plugins/dfsound/registers.c')
-rw-r--r--plugins/dfsound/registers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c
index 83b9e43..f6c3058 100644
--- a/plugins/dfsound/registers.c
+++ b/plugins/dfsound/registers.c
@@ -169,6 +169,7 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val)
s_chan[ch].pLoop=spuMemC+((unsigned long)((val<<3)&~0xf));
//s_chan[ch].bIgnoreLoop=1;
//ReleaseMutex(s_chan[ch].hMutex); // -> oki, on with the thread
+ dwChannelDead&=~(1<<ch);
break;
//------------------------------------------------//
}
@@ -429,6 +430,7 @@ void SoundOn(int start,int end,unsigned short val) // SOUND ON PSX COMAND
dwNewChannel|=(1<<ch); // bitfield for faster testing
dwChannelOn|=1<<ch;
+ dwChannelDead&=~(1<<ch);
}
}
}