summaryrefslogtreecommitdiff
path: root/plugins/dfsound/spu.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-02 07:55:52 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-02 07:55:52 +0000
commitd4a2f0051ab1a43fbf2376ec905319797a1fdc3c (patch)
tree4094b1c78afb63fad13be19b271487ba8ebde4a8 /plugins/dfsound/spu.c
parent975b596091422b2583ed6d5e0e56efeb4626dfac (diff)
downloadpcsxr-d4a2f0051ab1a43fbf2376ec905319797a1fdc3c.tar.gz
- dfsound: quick fix (FF9 music, maybe others as well).
- peopsxgl (unix): imported new config utility written by Kivutar, with minor amendments (https://github.com/Kivutar/cfgPeopsMesaGL). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61694 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfsound/spu.c')
-rw-r--r--plugins/dfsound/spu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c
index f6c8ebd5..40e32094 100644
--- a/plugins/dfsound/spu.c
+++ b/plugins/dfsound/spu.c
@@ -109,7 +109,7 @@ static HANDLE hMainThread;
static pthread_t thread = (pthread_t)-1; // thread id (linux)
#endif
-unsigned long dwNewChannel=0; // flags for faster testing, if new channel starts
+uint32_t dwNewChannel=0; // flags for faster testing, if new channel starts
void (CALLBACK *irqCallback)(void)=0; // func of main emu, called on spu irq
void (CALLBACK *cddavCallback)(unsigned short,unsigned short)=0;
@@ -596,7 +596,10 @@ static void *MAINThread(void *arg)
for(ch=0;ch<MAXCHAN;ch++) // loop em all... we will collect 1 ms of sound of each playing channel
{
- if(s_chan[ch].bNew) StartSound(ch); // start new sound
+ if(s_chan[ch].bNew) {
+ StartSound(ch); // start new sound
+ dwNewChannel&=~(1<<ch); // clear new channel bit
+ }
if(!s_chan[ch].bOn) continue; // channel not playing? next
if(s_chan[ch].iActFreq!=s_chan[ch].iUsedFreq) // new psx frequency?