From ec917e8e2ff30d2c2da873b3ce4f95160c89f03f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 16 Mar 2010 15:37:41 -0700 Subject: Rename some struct members for consistency --- OpenAL32/alBuffer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenAL32/alBuffer.c') diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index ace59ceb..2c909653 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -118,7 +118,7 @@ ALAPI ALvoid ALAPIENTRY alGenBuffers(ALsizei n,ALuint *puiBuffers) // Check the pointer is valid (and points to enough memory to store Buffer Names) if (!IsBadWritePtr((void*)puiBuffers, n * sizeof(ALuint))) { - ALbuffer **list = &device->Buffers; + ALbuffer **list = &device->BufferList; while(*list) list = &(*list)->next; @@ -205,7 +205,7 @@ ALAPI ALvoid ALAPIENTRY alDeleteBuffers(ALsizei n, const ALuint *puiBuffers) { if (puiBuffers[i] && alIsBuffer(puiBuffers[i])) { - ALbuffer **list = &device->Buffers; + ALbuffer **list = &device->BufferList; ALBuf=((ALbuffer *)ALTHUNK_LOOKUPENTRY(puiBuffers[i])); while(*list && *list != ALBuf) @@ -254,7 +254,7 @@ ALAPI ALboolean ALAPIENTRY alIsBuffer(ALuint uiBuffer) TgtALBuf = (ALbuffer *)ALTHUNK_LOOKUPENTRY(uiBuffer); // Check through list of generated buffers for uiBuffer - ALBuf = device->Buffers; + ALBuf = device->BufferList; while (ALBuf) { if (ALBuf == TgtALBuf) @@ -1263,7 +1263,7 @@ ALvoid ReleaseALBuffers(ALCdevice *device) ALbuffer *ALBuffer; ALbuffer *ALBufferTemp; - ALBuffer = device->Buffers; + ALBuffer = device->BufferList; while(ALBuffer) { // Release sample data @@ -1275,6 +1275,6 @@ ALvoid ReleaseALBuffers(ALCdevice *device) memset(ALBufferTemp, 0, sizeof(ALbuffer)); free(ALBufferTemp); } - device->Buffers = NULL; + device->BufferList = NULL; device->BufferCount = 0; } -- cgit v1.2.3