aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-10 00:12:41 -0500
committerNebuleon Fumika2013-02-10 00:12:41 -0500
commit16a41b40b87031dd437385299e7e197a5a863f98 (patch)
treebaf5e61dadb1be8fb83771b0657577fae9706004
parent18e56b68fd90e19b699a17320646c9628f97f160 (diff)
downloadsnesemu-16a41b40b87031dd437385299e7e197a5a863f98.tar.gz
snesemu-16a41b40b87031dd437385299e7e197a5a863f98.tar.bz2
snesemu-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.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;