aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-26 19:19:18 -0500
committerNebuleon Fumika2013-01-26 19:19:18 -0500
commit6e69c6201b3072acdf111f3fd268b640fde58326 (patch)
tree97bc585962a20316fddf9b0163b26107e2abe54f /source
parentf2f7ef3fe9ac8333b1db09b023dac191ed4736fb (diff)
downloadsnes9x2005-6e69c6201b3072acdf111f3fd268b640fde58326.tar.gz
snes9x2005-6e69c6201b3072acdf111f3fd268b640fde58326.tar.bz2
snes9x2005-6e69c6201b3072acdf111f3fd268b640fde58326.zip
Fix uninitialised memory access in pitch modulation.
Diffstat (limited to 'source')
-rw-r--r--source/soundux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/soundux.cpp b/source/soundux.cpp
index 1c05e77..d7d9011 100644
--- a/source/soundux.cpp
+++ b/source/soundux.cpp
@@ -899,7 +899,7 @@ static inline void MixStereo_ReversedLoop (int sample_count)
{
int pitch_mod = SoundData.pitch_mod & ~APU.DSP[APU_NON];
int32 VL[8], VR[8];
- int32 PreviousChannelSample;
+ int32 PreviousChannelSample = 0;
for (uint32 I = 0; I < (uint32) sample_count; I += 2)
{