diff options
author | Chris Robinson <[email protected]> | 2017-09-21 05:42:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-09-21 05:42:35 -0700 |
commit | 90cedbea49e9756d97033962f6c1145991bc7095 (patch) | |
tree | df6c91ac4c7f17b33b9153994ccf3fbaf3ce9a70 /Alc/effects/reverb.c | |
parent | 0b243f1aaf5251823bb0fda7fbb9cf30706fdf33 (diff) |
Pass the context to the auxiliary effect update method
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r-- | Alc/effects/reverb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 867abbcc..75790eae 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -182,7 +182,7 @@ typedef struct ALreverbState { static ALvoid ALreverbState_Destruct(ALreverbState *State); static ALboolean ALreverbState_deviceUpdate(ALreverbState *State, ALCdevice *Device); -static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device, const ALeffectslot *Slot, const ALeffectProps *props); +static ALvoid ALreverbState_update(ALreverbState *State, const ALCcontext *Context, const ALeffectslot *Slot, const ALeffectProps *props); static ALvoid ALreverbState_process(ALreverbState *State, ALsizei SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALsizei NumChannels); DECLARE_DEFAULT_ALLOCATORS(ALreverbState) @@ -1307,8 +1307,9 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection #undef MATRIX_MULT } -static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device, const ALeffectslot *Slot, const ALeffectProps *props) +static ALvoid ALreverbState_update(ALreverbState *State, const ALCcontext *Context, const ALeffectslot *Slot, const ALeffectProps *props) { + const ALCdevice *Device = Context->Device; ALuint frequency = Device->Frequency; ALfloat lfScale, hfScale, hfRatio; ALfloat lfDecayTime, hfDecayTime; |