diff options
author | Chris Robinson <[email protected]> | 2012-04-19 22:28:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-19 22:28:01 -0700 |
commit | c9e64596a4266bdb6a9b76e30068d725729123c3 (patch) | |
tree | 8271b7b3fad1b26c301ab62eed46389c1a2f2d56 /OpenAL32/alSource.c | |
parent | 08bd5e8b37f63711a5d4d40418188e21c603f856 (diff) |
Use a consistent name for the self-id field
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 1e3d09c5..33058054 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -78,12 +78,12 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n, ALuint *sources) } InitSourceParams(source); - err = NewThunkEntry(&source->source); + err = NewThunkEntry(&source->id); if(err == AL_NO_ERROR) - err = InsertUIntMapEntry(&Context->SourceMap, source->source, source); + err = InsertUIntMapEntry(&Context->SourceMap, source->id, source); if(err != AL_NO_ERROR) { - FreeThunkEntry(source->source); + FreeThunkEntry(source->id); memset(source, 0, sizeof(ALsource)); free(source); @@ -92,7 +92,7 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n, ALuint *sources) break; } - sources[i++] = source->source; + sources[i++] = source->id; } } @@ -133,8 +133,7 @@ AL_API ALvoid AL_APIENTRY alDeleteSources(ALsizei n, const ALuint *sources) // Remove Source from list of Sources if((Source=RemoveSource(Context, sources[i])) == NULL) continue; - - FreeThunkEntry(Source->source); + FreeThunkEntry(Source->id); LockContext(Context); srclist = Context->ActiveSources; @@ -2202,7 +2201,7 @@ ALvoid ReleaseALSources(ALCcontext *Context) } // Release source structure - FreeThunkEntry(temp->source); + FreeThunkEntry(temp->id); memset(temp, 0, sizeof(ALsource)); free(temp); } |