Rename the ALEffect_ macros to ALeffectState_ to reflect what they work on
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
+1
-1
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user