From 4c3f27193f7379513b3e45398711cfe1238184fd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 7 Nov 2014 02:18:24 -0800 Subject: Use a separate macro for the max output channel count --- Alc/effects/compressor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/compressor.c') diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index bc1cb81a..ab88ecf0 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -31,7 +31,7 @@ typedef struct ALcompressorState { DERIVE_FROM_TYPE(ALeffectState); /* Effect gains for each channel */ - ALfloat Gain[MaxChannels]; + ALfloat Gain[MAX_OUTPUT_CHANNELS]; /* Effect parameters */ ALboolean Enabled; @@ -116,7 +116,7 @@ static ALvoid ALcompressorState_process(ALcompressorState *state, ALuint Samples } - for(kt = 0;kt < MaxChannels;kt++) + for(kt = 0;kt < MAX_OUTPUT_CHANNELS;kt++) { ALfloat gain = state->Gain[kt]; if(!(gain > GAIN_SILENCE_THRESHOLD)) -- cgit v1.2.3