From: notaz Date: Mon, 14 Aug 2023 21:16:22 +0000 (+0300) Subject: spu: clear on init X-Git-Tag: r24~200 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66cc6abb94419190a96ae48c62f13d7cdd76f7a6;p=pcsx_rearmed.git spu: clear on init Otherwise some residual stuff seems to carry over between games, especially in hle mode. --- 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();