aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-27 13:16:17 -0700
committerChris Robinson <[email protected]>2013-05-27 13:16:17 -0700
commit334a7c1d59961277263a7a69575325aeef0987ee (patch)
treef96e8536a0e1a1e5e099ee00ffc76f51f0d4532d /OpenAL32/alAuxEffectSlot.c
parent8d874512b6a1520dc9fbbe6322495e9e2da9dc3c (diff)
Cleanup the ALeffectStateFactory_create methods
Get rid of the ALeffectStateFactory_create macro, and use the VCALL_NOARGS helper (requires adding the 'this' factory parameter).
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 14dd8816..878597d9 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -486,7 +486,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e
ERR("Failed to find factory for effect type 0x%04x\n", newtype);
return AL_INVALID_ENUM;
}
- State = ALeffectStateFactory_create(factory);
+ State = VCALL_NOARGS(factory,create);
if(!State)
return AL_OUT_OF_MEMORY;
@@ -548,7 +548,7 @@ ALenum InitEffectSlot(ALeffectslot *slot)
slot->EffectType = AL_EFFECT_NULL;
factory = getFactoryByType(AL_EFFECT_NULL);
- if(!(slot->EffectState=ALeffectStateFactory_create(factory)))
+ if(!(slot->EffectState=VCALL_NOARGS(factory,create)))
return AL_OUT_OF_MEMORY;
slot->Gain = 1.0;