snes_snd.c: fixed save state error [Fabio Priuli]

out of whatsnew: I kept the changes to a minimum... I seriously hope no rounding error happens in dsp_update now
This commit is contained in:
Fabio Priuli 2011-02-14 13:43:46 +00:00
parent 5e4df8c772
commit f3855eb1b0

View File

@ -165,6 +165,8 @@ typedef enum /* ADSR state type */
RELEASE RELEASE
} env_state_t32; } env_state_t32;
ALLOW_SAVE_TYPE(env_state_t32);
typedef struct /* Voice state type */ typedef struct /* Voice state type */
{ {
UINT16 mem_ptr; /* Sample data memory pointer */ UINT16 mem_ptr; /* Sample data memory pointer */
@ -181,8 +183,8 @@ typedef struct /* Voice state type */
int range; /* Last header's range */ int range; /* Last header's range */
UINT32 samp_id; /* Sample ID# */ UINT32 samp_id; /* Sample ID# */
int sampptr; /* Where in sampbuf we are */ int sampptr; /* Where in sampbuf we are */
signed long smp1; /* Last sample (for BRR filter) */ INT32 smp1; /* Last sample (for BRR filter) */
signed long smp2; /* Second-to-last sample decoded*/ INT32 smp2; /* Second-to-last sample decoded*/
short sampbuf[4]; /* Buffer for Gaussian interp */ short sampbuf[4]; /* Buffer for Gaussian interp */
} voice_state_type; } voice_state_type;