From 9bb93b77555a2202d6399cd3a1e21ba32d4514c1 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 15 Aug 2023 00:16:22 +0300 Subject: [PATCH] spu: clear on init Otherwise some residual stuff seems to carry over between games, especially in hle mode. --- plugins/dfsound/spu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index 038f946e..2cb0587a 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -1482,6 +1482,7 @@ long CALLBACK SPUinit(void) { int i; + memset(&spu, 0, sizeof(spu)); spu.spuMemC = calloc(1, 512 * 1024); InitADSR(); -- 2.39.5