From e099a4a86c8d2cd8de1967d6e5816b2ae5ae315e Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 16 Aug 2023 22:59:42 +0300 Subject: [PATCH] spu: add forgotten prevflags checking forgot in 3113a160828f9353715e4b8cc1041d9c86162df2 --- plugins/dfsound/spu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index 2cb0587a..4dc762f6 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -493,6 +493,8 @@ static void scan_for_irq(int ch, unsigned int *upd_samples) pos = s_chan->spos; sinc = s_chan->sinc; end = pos + *upd_samples * sinc; + if (s_chan->prevflags & 1) // 1: stop/loop + block = s_chan->pLoop; pos += (28 - s_chan->iSBPos) << 16; while (pos < end) -- 2.39.5