aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-12 02:20:14 -0700
committerChris Robinson <[email protected]>2010-05-12 02:20:14 -0700
commitaf4faaf6660d02ce593e07b97d05020b44ed06e4 (patch)
treeaf18189c604ec6c165084fe3c49bb1cdc2c3603f /OpenAL32/alSource.c
parentf2548570b85b6deaba57f1bfa2ded87bf2f42886 (diff)
Use a UIntMap for the effect slot list
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index afea8dfb..ba79f03f 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -39,10 +39,10 @@ static ALint GetByteOffset(ALsource *Source);
static ALint FramesFromBytes(ALint offset, ALenum format, ALint channels);
DECL_VERIFIER(Filter, ALfilter, filter)
-DECL_VERIFIER(EffectSlot, ALeffectslot, effectslot)
#define LookupSource(m, k) ((ALsource*)LookupUIntMapKey(&(m), (k)))
#define LookupBuffer(m, k) ((ALbuffer*)LookupUIntMapKey(&(m), (k)))
+#define LookupEffectSlot(m, k) ((ALeffectslot*)LookupUIntMapKey(&(m), (k)))
AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
{
@@ -718,7 +718,7 @@ AL_API void AL_APIENTRY alSource3i(ALuint source, ALenum eParam, ALint lValue1,
if((ALuint)lValue2 < device->NumAuxSends &&
(lValue1 == 0 ||
- (ALEffectSlot=VerifyEffectSlot(pContext->EffectSlotList, lValue1)) != NULL) &&
+ (ALEffectSlot=LookupEffectSlot(pContext->EffectSlotMap, lValue1)) != NULL) &&
(lValue3 == 0 ||
(ALFilter=VerifyFilter(device->FilterList, lValue3)) != NULL))
{