aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-18 17:41:06 -0700
committerChris Robinson <[email protected]>2010-05-18 17:41:06 -0700
commit4edd7fe6476dc83fae162ab694984b17924968c3 (patch)
tree2dbb88d8498d10d4dfb2b34dc6123e273be487d9 /OpenAL32/alAuxEffectSlot.c
parentad5dfab428f9eea071cb0c17808d672c84d78ebb (diff)
Use a map for the effects list
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index b659c5f5..e8a76d35 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -34,9 +34,8 @@
static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect *effect);
-DECL_VERIFIER(Effect, ALeffect, effect)
-
#define LookupEffectSlot(m, k) ((ALeffectslot*)LookupUIntMapKey(&(m), (k)))
+#define LookupEffect(m, k) ((ALeffect*)LookupUIntMapKey(&(m), (k)))
AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslots)
{
@@ -187,7 +186,7 @@ AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSloti(ALuint effectslot, ALenum param
ALeffect *effect = NULL;
if(iValue == 0 ||
- (effect=VerifyEffect(Context->Device->EffectList, iValue)) != NULL)
+ (effect=LookupEffect(Context->Device->EffectMap, iValue)) != NULL)
{
InitializeEffect(Context, EffectSlot, effect);
updateSources = AL_TRUE;