From 66cc6abb94419190a96ae48c62f13d7cdd76f7a6 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