diff options
author | Chris Robinson <[email protected]> | 2011-07-16 03:02:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-16 03:02:16 -0700 |
commit | 3bd7256dc826f21b30e90c9d761e8d5639700afe (patch) | |
tree | 275acee6c06705b4504dfd797fc073430e6626e3 /OpenAL32 | |
parent | da2429a1d0ad184abe24f61aa7e064b81026651c (diff) |
Pass the effect slot to the effect update method
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 2 | ||||
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index eced4872..fe63b39b 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -41,7 +41,7 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context); struct ALeffectState { ALvoid (*Destroy)(ALeffectState *State); ALboolean (*DeviceUpdate)(ALeffectState *State, ALCdevice *Device); - ALvoid (*Update)(ALeffectState *State, ALCcontext *Context, const ALeffect *Effect); + ALvoid (*Update)(ALeffectState *State, ALCcontext *Context, const ALeffectslot *Slot); ALvoid (*Process)(ALeffectState *State, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS]); }; diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index b4046c71..797c8237 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -435,11 +435,11 @@ static ALboolean NoneDeviceUpdate(ALeffectState *State, ALCdevice *Device) (void)State; (void)Device; } -static ALvoid NoneUpdate(ALeffectState *State, ALCcontext *Context, const ALeffect *Effect) +static ALvoid NoneUpdate(ALeffectState *State, ALCcontext *Context, const ALeffectslot *Slot) { (void)State; (void)Context; - (void)Effect; + (void)Slot; } static ALvoid NoneProcess(ALeffectState *State, const ALeffectslot *Slot, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MAXCHANNELS]) { @@ -506,7 +506,7 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, AL * be called (coming changes may not guarantee an update when the * NeedsUpdate flag is set). */ EffectSlot->NeedsUpdate = AL_FALSE; - ALEffect_Update(EffectSlot->EffectState, Context, &EffectSlot->effect); + ALEffect_Update(EffectSlot->EffectState, Context, EffectSlot); } else { |