aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcReverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-03-13 14:49:58 -0700
committerChris Robinson <[email protected]>2012-03-13 14:49:58 -0700
commitb5ed2a5351c065fb1de5ecc52e3d981458cd2f2c (patch)
tree2f7d3e15ebb4905390a5e3e5554c8acdf8701f41 /Alc/alcReverb.c
parent55c5e4fe92eefc4c9208a4f6ac967247a4c4ab34 (diff)
Pass a device to the effect update functions
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r--Alc/alcReverb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c
index f21819ef..f11b4ee4 100644
--- a/Alc/alcReverb.c
+++ b/Alc/alcReverb.c
@@ -1081,10 +1081,10 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection
// This updates the EAX reverb state. This is called any time the EAX reverb
// effect is loaded into a slot.
-static ALvoid ReverbUpdate(ALeffectState *effect, ALCcontext *Context, const ALeffectslot *Slot)
+static ALvoid ReverbUpdate(ALeffectState *effect, ALCdevice *Device, const ALeffectslot *Slot)
{
ALverbState *State = (ALverbState*)effect;
- ALuint frequency = Context->Device->Frequency;
+ ALuint frequency = Device->Frequency;
ALboolean isEAX = AL_FALSE;
ALfloat cw, x, y, hfRatio;
@@ -1154,12 +1154,11 @@ static ALvoid ReverbUpdate(ALeffectState *effect, ALCcontext *Context, const ALe
hfRatio, cw, frequency, State);
// Update early and late 3D panning.
- Update3DPanning(Context->Device, Slot->effect.Reverb.ReflectionsPan,
+ Update3DPanning(Device, Slot->effect.Reverb.ReflectionsPan,
Slot->effect.Reverb.LateReverbPan, Slot->Gain, State);
}
else
{
- ALCdevice *Device = Context->Device;
ALfloat gain = Slot->Gain;
ALuint index;