aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-12 00:44:52 -0700
committerChris Robinson <[email protected]>2011-09-12 00:44:52 -0700
commit0ceea27b44919b406e4ef7b89b13a1bbf71e10eb (patch)
tree412d09eca8425f18e0a79e5f844fe7ba9d580d13 /Alc
parent0dc5837b827813a2c48b5a099e62da65c0e5876e (diff)
Remove the effect slot parameter from the effect process method
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
-rw-r--r--Alc/alcDedicated.c3
-rw-r--r--Alc/alcEcho.c3
-rw-r--r--Alc/alcModulator.c3
-rw-r--r--Alc/alcReverb.c6
5 files changed, 6 insertions, 11 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 0446525c..2f505217 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1009,7 +1009,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
if(!DeferUpdates && ExchangeInt(&(*slot)->NeedsUpdate, AL_FALSE))
ALEffect_Update((*slot)->EffectState, ctx, *slot);
- ALEffect_Process((*slot)->EffectState, *slot, SamplesToDo,
+ ALEffect_Process((*slot)->EffectState, SamplesToDo,
(*slot)->WetBuffer, device->DryBuffer);
for(i = 0;i < SamplesToDo;i++)
diff --git a/Alc/alcDedicated.c b/Alc/alcDedicated.c
index 307d60ef..a371bb20 100644
--- a/Alc/alcDedicated.c
+++ b/Alc/alcDedicated.c
@@ -75,12 +75,11 @@ static ALvoid DedicatedUpdate(ALeffectState *effect, ALCcontext *Context, const
state->gains[LFE] = Gain;
}
-static ALvoid DedicatedProcess(ALeffectState *effect, const ALeffectslot *Slot, 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;
ALuint i, s;
- (void)Slot;
for(i = 0;i < SamplesToDo;i++)
{
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c
index f5d1174f..76249d87 100644
--- a/Alc/alcEcho.c
+++ b/Alc/alcEcho.c
@@ -125,7 +125,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff
}
}
-static ALvoid EchoProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
+static ALvoid EchoProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
{
ALechoState *state = (ALechoState*)effect;
const ALuint mask = state->BufferLength-1;
@@ -134,7 +134,6 @@ static ALvoid EchoProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuin
ALuint offset = state->Offset;
ALfloat samp[2], smp;
ALuint i;
- (void)Slot;
for(i = 0;i < SamplesToDo;i++,offset++)
{
diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c
index e0ab5a1a..1a2ffd64 100644
--- a/Alc/alcModulator.c
+++ b/Alc/alcModulator.c
@@ -166,10 +166,9 @@ static ALvoid ModulatorUpdate(ALeffectState *effect, ALCcontext *Context, const
}
}
-static ALvoid ModulatorProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
+static ALvoid ModulatorProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
{
ALmodulatorState *state = (ALmodulatorState*)effect;
- (void)Slot;
switch(state->Waveform)
{
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c
index 562587e6..425b7052 100644
--- a/Alc/alcReverb.c
+++ b/Alc/alcReverb.c
@@ -522,13 +522,12 @@ static __inline ALvoid EAXVerbPass(ALverbState *State, ALfloat in, ALfloat *earl
// This processes the reverb state, given the input samples and an output
// buffer.
-static ALvoid VerbProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
+static ALvoid VerbProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
{
ALverbState *State = (ALverbState*)effect;
ALuint index;
ALfloat early[4], late[4], out[4];
const ALfloat *panGain = State->Gain;
- (void)Slot;
for(index = 0;index < SamplesToDo;index++)
{
@@ -555,12 +554,11 @@ static ALvoid VerbProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuin
// This processes the EAX reverb state, given the input samples and an output
// buffer.
-static ALvoid EAXVerbProcess(ALeffectState *effect, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
+static ALvoid EAXVerbProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS])
{
ALverbState *State = (ALverbState*)effect;
ALuint index;
ALfloat early[4], late[4];
- (void)Slot;
for(index = 0;index < SamplesToDo;index++)
{