aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-07-07 21:11:13 -0700
committerChris Robinson <[email protected]>2009-07-07 21:11:13 -0700
commit00a9cf4a8506fbfe181cd165c2257ef7f8db5ec3 (patch)
treec379a89c69b439141f7b3887582256226277e5ed /OpenAL32/alSource.c
parent1dcd538ad93f226223c98d797d12e58cde2cabff (diff)
Remove more unneeded variables
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 9f28c9d1..99fb5f06 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -532,9 +532,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
ALCcontext *pContext;
ALsource *pSource;
ALbufferlistitem *pALBufferListItem;
- ALint Counter = 0;
- ALint DataSize = 0;
- ALint BufferSize;
pContext = alcGetCurrentContext();
if (pContext)
@@ -594,11 +591,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
// Decrement reference counter for buffer
if (pALBufferListItem->buffer)
((ALbuffer*)(ALTHUNK_LOOKUPENTRY(pALBufferListItem->buffer)))->refcount--;
- // Record size of buffer
- BufferSize = ((ALbuffer*)ALTHUNK_LOOKUPENTRY(pALBufferListItem->buffer))->size;
- DataSize += BufferSize;
- // Increment the number of buffers removed from queue
- Counter++;
// Release memory for buffer list item
free(pALBufferListItem);
// Decrement the number of buffers in the queue
@@ -621,8 +613,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
pSource->queue = pALBufferListItem;
pSource->BuffersInQueue = 1;
- DataSize = ((ALbuffer*)ALTHUNK_LOOKUPENTRY(lValue))->size;
-
// Increment reference counter for buffer
((ALbuffer*)(ALTHUNK_LOOKUPENTRY(lValue)))->refcount++;
}