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/dedicated.c | |
parent | 6c954e71dbd99a2ceb072c08481aee92ef8461c0 (diff) |
Use a separate macro for the max output channel count
Diffstat (limited to 'Alc/effects/dedicated.c')
-rw-r--r-- | Alc/effects/dedicated.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/effects/dedicated.c b/Alc/effects/dedicated.c index 755ed611..2d955888 100644 --- a/Alc/effects/dedicated.c +++ b/Alc/effects/dedicated.c @@ -32,7 +32,7 @@ typedef struct ALdedicatedState { DERIVE_FROM_TYPE(ALeffectState); - ALfloat gains[MaxChannels]; + ALfloat gains[MAX_OUTPUT_CHANNELS]; } ALdedicatedState; @@ -50,7 +50,7 @@ static ALvoid ALdedicatedState_update(ALdedicatedState *state, ALCdevice *device ALfloat Gain; ALuint i; - for(i = 0;i < MaxChannels;i++) + for(i = 0;i < MAX_OUTPUT_CHANNELS;i++) state->gains[i] = 0.0f; Gain = Slot->Gain * Slot->EffectProps.Dedicated.Gain; @@ -80,7 +80,7 @@ static ALvoid ALdedicatedState_process(ALdedicatedState *state, ALuint SamplesTo const ALfloat *gains = state->gains; ALuint i, c; - for(c = 0;c < MaxChannels;c++) + for(c = 0;c < MAX_OUTPUT_CHANNELS;c++) { if(!(gains[c] > GAIN_SILENCE_THRESHOLD)) continue; @@ -108,7 +108,7 @@ ALeffectState *ALdedicatedStateFactory_create(ALdedicatedStateFactory *UNUSED(fa if(!state) return NULL; SET_VTABLE2(ALdedicatedState, ALeffectState, state); - for(s = 0;s < MaxChannels;s++) + for(s = 0;s < MAX_OUTPUT_CHANNELS;s++) state->gains[s] = 0.0f; return STATIC_CAST(ALeffectState, state); |