aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-22 07:40:14 -0700
committerChris Robinson <[email protected]>2011-08-22 07:40:14 -0700
commit199df253caad196162b02d61fd7ed06606193890 (patch)
treea7ef47822a1593b600c440da9cc2f0e5586df8be /OpenAL32/alSource.c
parentc1f435cc18df4e2597d166b8b1c8a0d4ba9b23a6 (diff)
Always use the thunk functions to get object IDs
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 6a6edfa0..cf71e2e9 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -85,12 +85,12 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
break;
}
- err = ALTHUNK_NEWENTRY(source, &source->source);
+ err = NewThunkEntry(&source->source);
if(err == AL_NO_ERROR)
err = InsertUIntMapEntry(&Context->SourceMap, source->source, source);
if(err != AL_NO_ERROR)
{
- ALTHUNK_REMOVEENTRY(source->source);
+ FreeThunkEntry(source->source);
memset(source, 0, sizeof(ALsource));
free(source);
@@ -175,7 +175,7 @@ AL_API ALvoid AL_APIENTRY alDeleteSources(ALsizei n, const ALuint *sources)
// Remove Source from list of Sources
RemoveUIntMapKey(&Context->SourceMap, Source->source);
- ALTHUNK_REMOVEENTRY(Source->source);
+ FreeThunkEntry(Source->source);
memset(Source,0,sizeof(ALsource));
free(Source);
@@ -2165,7 +2165,7 @@ ALvoid ReleaseALSources(ALCcontext *Context)
}
// Release source structure
- ALTHUNK_REMOVEENTRY(temp->source);
+ FreeThunkEntry(temp->source);
memset(temp, 0, sizeof(ALsource));
free(temp);
}