mirror of
https://github.com/holub/mame
synced 2025-05-18 03:35:03 +03:00
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:
parent
5e4df8c772
commit
f3855eb1b0
@ -165,6 +165,8 @@ typedef enum /* ADSR state type */
|
||||
RELEASE
|
||||
} env_state_t32;
|
||||
|
||||
ALLOW_SAVE_TYPE(env_state_t32);
|
||||
|
||||
typedef struct /* Voice state type */
|
||||
{
|
||||
UINT16 mem_ptr; /* Sample data memory pointer */
|
||||
@ -181,8 +183,8 @@ typedef struct /* Voice state type */
|
||||
int range; /* Last header's range */
|
||||
UINT32 samp_id; /* Sample ID# */
|
||||
int sampptr; /* Where in sampbuf we are */
|
||||
signed long smp1; /* Last sample (for BRR filter) */
|
||||
signed long smp2; /* Second-to-last sample decoded*/
|
||||
INT32 smp1; /* Last sample (for BRR filter) */
|
||||
INT32 smp2; /* Second-to-last sample decoded*/
|
||||
short sampbuf[4]; /* Buffer for Gaussian interp */
|
||||
} voice_state_type;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user