From 404cfde33e0aba9b084a40407a6f3fffd8dd1612 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 12 Sep 2011 05:59:23 -0700 Subject: [PATCH] Rename the ALEffect_ macros to ALeffectState_ to reflect what they work on --- Alc/ALc.c | 4 ++-- Alc/ALu.c | 6 +++--- OpenAL32/Include/alAuxEffectSlot.h | 8 ++++---- OpenAL32/alAuxEffectSlot.c | 14 +++++++------- OpenAL32/alState.c | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 0916d0ee..7d9793aa 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1218,7 +1218,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) { ALeffectslot *slot = context->EffectSlotMap.array[pos].value; - if(ALEffect_DeviceUpdate(slot->EffectState, device) == AL_FALSE) + if(ALeffectState_DeviceUpdate(slot->EffectState, device) == AL_FALSE) { UnlockUIntMapRead(&context->EffectSlotMap); UnlockDevice(device); @@ -1227,7 +1227,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) return ALC_FALSE; } slot->NeedsUpdate = AL_FALSE; - ALEffect_Update(slot->EffectState, context, slot); + ALeffectState_Update(slot->EffectState, context, slot); } UnlockUIntMapRead(&context->EffectSlotMap); diff --git a/Alc/ALu.c b/Alc/ALu.c index 4b4f6778..2b5a6e75 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1004,10 +1004,10 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) (*slot)->PendingClicks[0] = 0.0f; if(!DeferUpdates && ExchangeInt(&(*slot)->NeedsUpdate, AL_FALSE)) - ALEffect_Update((*slot)->EffectState, ctx, *slot); + ALeffectState_Update((*slot)->EffectState, ctx, *slot); - ALEffect_Process((*slot)->EffectState, SamplesToDo, - (*slot)->WetBuffer, device->DryBuffer); + ALeffectState_Process((*slot)->EffectState, SamplesToDo, + (*slot)->WetBuffer, device->DryBuffer); for(i = 0;i < SamplesToDo;i++) (*slot)->WetBuffer[i] = 0.0f; diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 0ab0e2ab..cdff330f 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -51,10 +51,10 @@ ALeffectState *EchoCreate(void); ALeffectState *ModulatorCreate(void); ALeffectState *DedicatedCreate(void); -#define ALEffect_Destroy(a) ((a)->Destroy((a))) -#define ALEffect_DeviceUpdate(a,b) ((a)->DeviceUpdate((a),(b))) -#define ALEffect_Update(a,b,c) ((a)->Update((a),(b),(c))) -#define ALEffect_Process(a,b,c,d) ((a)->Process((a),(b),(c),(d))) +#define ALeffectState_Destroy(a) ((a)->Destroy((a))) +#define ALeffectState_DeviceUpdate(a,b) ((a)->DeviceUpdate((a),(b))) +#define ALeffectState_Update(a,b,c) ((a)->Update((a),(b),(c))) +#define ALeffectState_Process(a,b,c,d) ((a)->Process((a),(b),(c),(d))) #ifdef __cplusplus diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 33831d29..df042815 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -100,7 +100,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo { RemoveEffectSlotArray(Context, slot); FreeThunkEntry(slot->effectslot); - ALEffect_Destroy(slot->EffectState); + ALeffectState_Destroy(slot->EffectState); free(slot); alSetError(Context, err); @@ -154,7 +154,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect FreeThunkEntry(EffectSlot->effectslot); RemoveEffectSlotArray(Context, EffectSlot); - ALEffect_Destroy(EffectSlot->EffectState); + ALeffectState_Destroy(EffectSlot->EffectState); memset(EffectSlot, 0, sizeof(ALeffectslot)); free(EffectSlot); @@ -564,10 +564,10 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, AL if(State) { - if(ALEffect_DeviceUpdate(State, Context->Device) == AL_FALSE) + if(ALeffectState_DeviceUpdate(State, Context->Device) == AL_FALSE) { UnlockContext(Context); - ALEffect_Destroy(State); + ALeffectState_Destroy(State); alSetError(Context, AL_OUT_OF_MEMORY); return; } @@ -581,10 +581,10 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, AL * object was changed, it needs an update before its Process method can * be called. */ EffectSlot->NeedsUpdate = AL_FALSE; - ALEffect_Update(EffectSlot->EffectState, Context, EffectSlot); + ALeffectState_Update(EffectSlot->EffectState, Context, EffectSlot); UnlockContext(Context); - ALEffect_Destroy(State); + ALeffectState_Destroy(State); State = NULL; } else @@ -608,7 +608,7 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context) Context->EffectSlotMap.array[pos].value = NULL; // Release effectslot structure - ALEffect_Destroy(temp->EffectState); + ALeffectState_Destroy(temp->EffectState); FreeThunkEntry(temp->effectslot); memset(temp, 0, sizeof(ALeffectslot)); diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index d8151eab..6e474430 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -614,7 +614,7 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void) while(slot != slot_end) { if(ExchangeInt(&(*slot)->NeedsUpdate, AL_FALSE)) - ALEffect_Update((*slot)->EffectState, Context, *slot); + ALeffectState_Update((*slot)->EffectState, Context, *slot); slot++; } -- 2.11.4.GIT