notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eff0d7
)
spu: don't assert on noise in thread mode
author
notaz
<notasas@gmail.com>
Sun, 24 Mar 2024 00:47:33 +0000
(
02:47
+0200)
committer
notaz
<notasas@gmail.com>
Sun, 24 Mar 2024 01:14:15 +0000
(
03:14
+0200)
plugins/dfsound/spu.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/dfsound/spu.c
b/plugins/dfsound/spu.c
index
ad86cab
..
9d43e43
100644
(file)
--- a/
plugins/dfsound/spu.c
+++ b/
plugins/dfsound/spu.c
@@
-1000,8
+1000,10
@@
static void queue_channel_work(int ns_to, unsigned int silentch)
if (unlikely(s_chan->bFMod == 2))
{
// sucks, have to do double work
- assert(!s_chan->bNoise);
- d = do_samples_gauss(tmpFMod, decode_block, NULL, ch, ns_to,
+ if (s_chan->bNoise)
+ d = do_samples_noise(tmpFMod, ch, ns_to);
+ else
+ d = do_samples_gauss(tmpFMod, decode_block, NULL, ch, ns_to,
&spu.sb[ch], s_chan->sinc, &s_chan->spos, &s_chan->iSBPos);
if (!s_chan->bStarting) {
d = MixADSR(tmpFMod, &s_chan->ADSRX, d);