diff --git a/desmume/src/SPU.c b/desmume/src/SPU.c index 6ef38a52a..2e140da83 100644 --- a/desmume/src/SPU.c +++ b/desmume/src/SPU.c @@ -140,6 +140,8 @@ int SPU_Init(int coreid, int buffersize) if ((SPU = (SPU_struct *)malloc(sizeof(SPU_struct))) == NULL) return -1; + memset((void *)SPU, 0, sizeof(SPU_struct)); + SPU_Reset(); return SPU_ChangeSoundCore(coreid, buffersize);