aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcDedicated.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcDedicated.c')
-rw-r--r--Alc/alcDedicated.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alcDedicated.c b/Alc/alcDedicated.c
index 81c7a3a4..60460962 100644
--- a/Alc/alcDedicated.c
+++ b/Alc/alcDedicated.c
@@ -33,7 +33,7 @@ typedef struct ALdedicatedState {
// Must be first in all effects!
ALeffectState state;
- ALfloat gains[MAXCHANNELS];
+ ALfloat gains[MaxChannels];
} ALdedicatedState;
@@ -57,7 +57,7 @@ static ALvoid DedicatedUpdate(ALeffectState *effect, ALCdevice *device, const AL
ALsizei s;
Gain = Slot->Gain * Slot->effect.Dedicated.Gain;
- for(s = 0;s < MAXCHANNELS;s++)
+ for(s = 0;s < MaxChannels;s++)
state->gains[s] = 0.0f;
if(Slot->effect.type == AL_EFFECT_DEDICATED_DIALOGUE)
@@ -66,7 +66,7 @@ static ALvoid DedicatedUpdate(ALeffectState *effect, ALCdevice *device, const AL
state->gains[LFE] = Gain;
}
-static ALvoid DedicatedProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
+static ALvoid DedicatedProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MaxChannels])
{
ALdedicatedState *state = (ALdedicatedState*)effect;
const ALfloat *gains = state->gains;
@@ -77,7 +77,7 @@ static ALvoid DedicatedProcess(ALeffectState *effect, ALuint SamplesToDo, const
ALfloat sample;
sample = SamplesIn[i];
- for(s = 0;s < MAXCHANNELS;s++)
+ for(s = 0;s < MaxChannels;s++)
SamplesOut[i][s] = sample * gains[s];
}
}
@@ -96,7 +96,7 @@ ALeffectState *DedicatedCreate(void)
state->state.Update = DedicatedUpdate;
state->state.Process = DedicatedProcess;
- for(s = 0;s < MAXCHANNELS;s++)
+ for(s = 0;s < MaxChannels;s++)
state->gains[s] = 0.0f;
return &state->state;