aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-10 00:12:41 -0500
committerNebuleon Fumika2013-02-10 00:12:41 -0500
commit16a41b40b87031dd437385299e7e197a5a863f98 (patch)
treebaf5e61dadb1be8fb83771b0657577fae9706004 /source
parent18e56b68fd90e19b699a17320646c9628f97f160 (diff)
downloadsnes9x2005-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).
Diffstat (limited to 'source')
-rw-r--r--source/soundux.h4
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;