diff --git a/desmume/src/SPU.c b/desmume/src/SPU.c index d1452c44c..6ef38a52a 100644 --- a/desmume/src/SPU.c +++ b/desmume/src/SPU.c @@ -169,7 +169,7 @@ void SPU_Reset(void) { int i; - memset((void *)SPU, 0, sizeof(SPU_struct)); + memset((void *)SPU->chan, 0, sizeof(channel_struct) * 16); // Reset Registers for (i = 0x400; i < 0x51D; i++) diff --git a/desmume/src/SPU.h b/desmume/src/SPU.h index 356b16c01..de551a24c 100644 --- a/desmume/src/SPU.h +++ b/desmume/src/SPU.h @@ -68,7 +68,6 @@ typedef struct typedef struct { - BOOL enable; u32 bufpos; u32 buflength; s32 *sndbuf;