diff options
author | Nebuleon Fumika | 2013-02-10 00:12:41 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-02-10 00:12:41 -0500 |
commit | 16a41b40b87031dd437385299e7e197a5a863f98 (patch) | |
tree | baf5e61dadb1be8fb83771b0657577fae9706004 | |
parent | 18e56b68fd90e19b699a17320646c9628f97f160 (diff) | |
download | snes9x2005-16a41b40b87031dd437385299e7e197a5a863f98.tar.gz snes9x2005-16a41b40b87031dd437385299e7e197a5a863f98.tar.bz2 snes9x2005-16a41b40b87031dd437385299e7e197a5a863f98.zip |
A type mismatch in sound channel data messed up the sound after loading a saved state in certain games. int (32 bit) is now short (16 bit).
-rw-r--r-- | source/soundux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/soundux.h b/source/soundux.h index b57e945..7855d6c 100644 --- a/source/soundux.h +++ b/source/soundux.h @@ -213,8 +213,8 @@ typedef struct uint32 dummy [3]; Channel channels [NUM_CHANNELS]; // bool8 no_filter; - int master_volume [2]; /* range is -128 .. 127 */ - int echo_volume [2]; /* range is -128 .. 127 */ + short master_volume [2]; /* range is -128 .. 127 */ + short echo_volume [2]; /* range is -128 .. 127 */ int noise_hertz; } SSoundData; |