X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfsound%2Fspu.c;h=4dc762f6facc876b00c964bbda583c6938c56e5c;hb=4b4164bb8f5019f743d2879b64d8f8f25430685d;hp=038f946eee2ec286700e2aff1ccf62e0bcdfa7d0;hpb=73d2a9037e5ea290cac10a9f26860a6405b55a0c;p=pcsx_rearmed.git diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index 038f946e..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) @@ -1482,6 +1484,7 @@ long CALLBACK SPUinit(void) { int i; + memset(&spu, 0, sizeof(spu)); spu.spuMemC = calloc(1, 512 * 1024); InitADSR();