diff options
author | Chris Robinson <[email protected]> | 2012-04-19 22:14:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-19 22:14:02 -0700 |
commit | 08bd5e8b37f63711a5d4d40418188e21c603f856 (patch) | |
tree | 913c3f6472a8bf2cd262fe2c5744c740e7f11ae6 /OpenAL32/alBuffer.c | |
parent | 125b743e5cd9b37420e4b0d57e0c3f6502784f2f (diff) |
Fix comment and rename the buffer's self-id
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index c2d0f41c..94aad22d 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -215,12 +215,12 @@ AL_API ALvoid AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers) } RWLockInit(&buffer->lock); - err = NewThunkEntry(&buffer->buffer); + err = NewThunkEntry(&buffer->id); if(err == AL_NO_ERROR) - err = InsertUIntMapEntry(&device->BufferMap, buffer->buffer, buffer); + err = InsertUIntMapEntry(&device->BufferMap, buffer->id, buffer); if(err != AL_NO_ERROR) { - FreeThunkEntry(buffer->buffer); + FreeThunkEntry(buffer->id); memset(buffer, 0, sizeof(ALbuffer)); free(buffer); @@ -229,7 +229,7 @@ AL_API ALvoid AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers) break; } - buffers[i++] = buffer->buffer; + buffers[i++] = buffer->id; } } @@ -283,7 +283,7 @@ AL_API ALvoid AL_APIENTRY alDeleteBuffers(ALsizei n, const ALuint *buffers) { if((ALBuf=RemoveBuffer(device, buffers[i])) == NULL) continue; - FreeThunkEntry(ALBuf->buffer); + FreeThunkEntry(ALBuf->id); /* Release the memory used to store audio data */ free(ALBuf->data); @@ -2278,7 +2278,7 @@ ALvoid ReleaseALBuffers(ALCdevice *device) free(temp->data); - FreeThunkEntry(temp->buffer); + FreeThunkEntry(temp->id); memset(temp, 0, sizeof(ALbuffer)); free(temp); } |