aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcModulator.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-12-01 18:33:17 -0800
committerChris Robinson <[email protected]>2010-12-01 18:33:17 -0800
commit9e8fb89a525c11685869d963c39e4f1076835d85 (patch)
tree5fdb70d80718e1ba7632e1b98fbb2fb4ffa0e883 /Alc/alcModulator.c
parent14441e0e5377884100ed0d3ae3bb753632b896ae (diff)
Rename OUTPUTCHANNELS to something more descriptive
Diffstat (limited to 'Alc/alcModulator.c')
-rw-r--r--Alc/alcModulator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c
index 19944fa3..11bb7d48 100644
--- a/Alc/alcModulator.c
+++ b/Alc/alcModulator.c
@@ -43,7 +43,7 @@ typedef struct ALmodulatorState {
ALuint index;
ALuint step;
- ALfloat Gain[OUTPUTCHANNELS];
+ ALfloat Gain[MAXCHANNELS];
FILTER iirFilter;
ALfloat history[1];
@@ -92,7 +92,7 @@ static ALboolean ModulatorDeviceUpdate(ALeffectState *effect, ALCdevice *Device)
ALmodulatorState *state = (ALmodulatorState*)effect;
ALuint index;
- for(index = 0;index < OUTPUTCHANNELS;index++)
+ for(index = 0;index < MAXCHANNELS;index++)
state->Gain[index] = 0.0f;
for(index = 0;index < Device->NumChan;index++)
{
@@ -125,7 +125,7 @@ static ALvoid ModulatorUpdate(ALeffectState *effect, ALCcontext *Context, const
state->iirFilter.coeff = a;
}
-static ALvoid ModulatorProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[OUTPUTCHANNELS])
+static ALvoid ModulatorProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
{
ALmodulatorState *state = (ALmodulatorState*)effect;
const ALfloat gain = Slot->Gain;