aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-18 17:54:45 -0700
committerChris Robinson <[email protected]>2010-05-18 17:54:45 -0700
commit2d46a1001e5ff81276666cb7eec292396710122d (patch)
tree7cedecfb8dc9b258b42a87c9f7ba457033e43ee4 /OpenAL32/alSource.c
parent4edd7fe6476dc83fae162ab694984b17924968c3 (diff)
Use a map for the filter list
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index df7abbcc..078b5623 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -38,10 +38,9 @@ static ALboolean ApplyOffset(ALsource *Source);
static ALint GetByteOffset(ALsource *Source);
static ALint FramesFromBytes(ALint offset, ALenum format, ALint channels);
-DECL_VERIFIER(Filter, ALfilter, filter)
-
#define LookupSource(m, k) ((ALsource*)LookupUIntMapKey(&(m), (k)))
#define LookupBuffer(m, k) ((ALbuffer*)LookupUIntMapKey(&(m), (k)))
+#define LookupFilter(m, k) ((ALfilter*)LookupUIntMapKey(&(m), (k)))
#define LookupEffectSlot(m, k) ((ALeffectslot*)LookupUIntMapKey(&(m), (k)))
AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
@@ -628,7 +627,7 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
ALfilter *filter = NULL;
if(lValue == 0 ||
- (filter=VerifyFilter(pContext->Device->FilterList, lValue)) != NULL)
+ (filter=LookupFilter(pContext->Device->FilterMap, lValue)) != NULL)
{
if(!filter)
{
@@ -730,7 +729,7 @@ AL_API void AL_APIENTRY alSource3i(ALuint source, ALenum eParam, ALint lValue1,
(lValue1 == 0 ||
(ALEffectSlot=LookupEffectSlot(pContext->EffectSlotMap, lValue1)) != NULL) &&
(lValue3 == 0 ||
- (ALFilter=VerifyFilter(device->FilterList, lValue3)) != NULL))
+ (ALFilter=LookupFilter(device->FilterMap, lValue3)) != NULL))
{
/* Release refcount on the previous slot, and add one for
* the new slot */