Skip to content

Commit

Permalink
spu: don't assert on noise in thread mode
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Mar 24, 2024
1 parent 3eff0d7 commit 7f8ea94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/dfsound/spu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f8ea94

Please sign in to comment.