notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spu: get rid of bStop, clean up
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
spu.c
diff --git
a/plugins/dfsound/spu.c
b/plugins/dfsound/spu.c
index
147db94
..
66ab150
100644
(file)
--- a/
plugins/dfsound/spu.c
+++ b/
plugins/dfsound/spu.c
@@
-238,7
+238,6
@@
INLINE void StartSound(int ch)
StartADSR(ch);
StartREVERB(ch);
StartADSR(ch);
StartREVERB(ch);
- s_chan[ch].bStop=0;
s_chan[ch].prevflags=2;
s_chan[ch].SB[26]=0; // init mixing vars
s_chan[ch].prevflags=2;
s_chan[ch].SB[26]=0; // init mixing vars
@@
-765,10
+764,9
@@
static void do_channels(int ns_to)
else
d = do_samples_default(ch, ns_to);
else
d = do_samples_default(ch, ns_to);
- d = MixADSR(
ch
, d);
+ d = MixADSR(
&s_chan[ch].ADSRX
, d);
if (d < ns_to) {
spu.dwChannelOn &= ~(1 << ch);
if (d < ns_to) {
spu.dwChannelOn &= ~(1 << ch);
- s_chan[ch].bStop = 1;
s_chan[ch].ADSRX.EnvelopeVol = 0;
memset(&ChanBuf[d], 0, (ns_to - d) * sizeof(ChanBuf[0]));
}
s_chan[ch].ADSRX.EnvelopeVol = 0;
memset(&ChanBuf[d], 0, (ns_to - d) * sizeof(ChanBuf[0]));
}