spu: clear on init
authornotaz <notasas@gmail.com>
Mon, 14 Aug 2023 21:16:22 +0000 (00:16 +0300)
committernotaz <notasas@gmail.com>
Tue, 15 Aug 2023 22:02:38 +0000 (01:02 +0300)
Otherwise some residual stuff seems to carry over between games,
especially in hle mode.

plugins/dfsound/spu.c

index 038f946..2cb0587 100644 (file)
@@ -1482,6 +1482,7 @@ long CALLBACK SPUinit(void)
 {
  int i;
 
+ memset(&spu, 0, sizeof(spu));
  spu.spuMemC = calloc(1, 512 * 1024);
  InitADSR();