aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-26 20:16:02 -0500
committerNebuleon Fumika2013-01-26 20:16:02 -0500
commite473daf461ed5c32e9629f51bd1009a1270ec8db (patch)
treef74e4973be0e446502e118dd95a1343f9482b573
parent365a69d72ebfc986a59d269359bf04f53a18a8e5 (diff)
downloadsnesemu-e473daf461ed5c32e9629f51bd1009a1270ec8db.tar.gz
snesemu-e473daf461ed5c32e9629f51bd1009a1270ec8db.tar.bz2
snesemu-e473daf461ed5c32e9629f51bd1009a1270ec8db.zip
8 is NUM_CHANNELS. (magic constant)
-rw-r--r--source/soundux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/soundux.cpp b/source/soundux.cpp
index d7d9011..0435476 100644
--- a/source/soundux.cpp
+++ b/source/soundux.cpp
@@ -898,7 +898,7 @@ void DecodeBlock (Channel *ch)
static inline void MixStereo_ReversedLoop (int sample_count)
{
int pitch_mod = SoundData.pitch_mod & ~APU.DSP[APU_NON];
- int32 VL[8], VR[8];
+ int32 VL[NUM_CHANNELS], VR[NUM_CHANNELS];
int32 PreviousChannelSample = 0;
for (uint32 I = 0; I < (uint32) sample_count; I += 2)