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/compressor.c | |
parent | 0b243f1aaf5251823bb0fda7fbb9cf30706fdf33 (diff) |
Pass the context to the auxiliary effect update method
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r-- | Alc/effects/compressor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index 25c7a3dc..81f3c31b 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -42,7 +42,7 @@ typedef struct ALcompressorState { static ALvoid ALcompressorState_Destruct(ALcompressorState *state); static ALboolean ALcompressorState_deviceUpdate(ALcompressorState *state, ALCdevice *device); -static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot, const ALeffectProps *props); +static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCcontext *context, const ALeffectslot *slot, const ALeffectProps *props); static ALvoid ALcompressorState_process(ALcompressorState *state, ALsizei SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALsizei NumChannels); DECLARE_DEFAULT_ALLOCATORS(ALcompressorState) @@ -76,8 +76,9 @@ static ALboolean ALcompressorState_deviceUpdate(ALcompressorState *state, ALCdev return AL_TRUE; } -static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot, const ALeffectProps *props) +static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCcontext *context, const ALeffectslot *slot, const ALeffectProps *props) { + const ALCdevice *device = context->Device; ALuint i; state->Enabled = props->Compressor.OnOff; |