aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcDedicated.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-06-28 18:49:49 -0700
committerChris Robinson <[email protected]>2012-06-28 18:49:49 -0700
commit583dc8dbcaf8ce59678fe287b1e584c2f99b7f3c (patch)
treef71172e7731bb6711e6a4768196f76aec02e6635 /Alc/alcDedicated.c
parentbefa4e7528f5ca1f54481bf137706de0239e98eb (diff)
Don't use all caps for enum value names
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;