diff options
author | Chris Robinson <[email protected]> | 2014-11-07 02:18:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-07 02:18:24 -0800 |
commit | 4c3f27193f7379513b3e45398711cfe1238184fd (patch) | |
tree | 93499e0af78b28be8568bd4ac689d3a40728b96f /Alc/effects/modulator.c | |
parent | 6c954e71dbd99a2ceb072c08481aee92ef8461c0 (diff) |
Use a separate macro for the max output channel count
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r-- | Alc/effects/modulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index 01d19bcb..c69a8a09 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -42,7 +42,7 @@ typedef struct ALmodulatorState { ALuint index; ALuint step; - ALfloat Gain[MaxChannels]; + ALfloat Gain[MAX_OUTPUT_CHANNELS]; ALfilterState Filter; } ALmodulatorState; @@ -92,7 +92,7 @@ static void Process##func(ALmodulatorState *state, ALuint SamplesToDo, \ temps[i] = samp * func(index); \ } \ \ - for(k = 0;k < MaxChannels;k++) \ + for(k = 0;k < MAX_OUTPUT_CHANNELS;k++) \ { \ ALfloat gain = state->Gain[k]; \ if(!(gain > GAIN_SILENCE_THRESHOLD)) \ |