aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 2ec4ce9c..1e3d09c5 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1145,7 +1145,7 @@ AL_API ALvoid AL_APIENTRY alGetSourcei(ALuint source, ALenum param, ALint *value
}
}
*value = ((BufferList && BufferList->buffer) ?
- BufferList->buffer->buffer : 0);
+ BufferList->buffer->id : 0);
UnlockContext(Context);
break;
@@ -1763,7 +1763,7 @@ AL_API ALvoid AL_APIENTRY alSourceUnqueueBuffers(ALuint source, ALsizei n, ALuin
if(BufferList->buffer)
{
// Record name of buffer
- buffers[i] = BufferList->buffer->buffer;
+ buffers[i] = BufferList->buffer->id;
// Decrement buffer reference counter
DecrementRef(&BufferList->buffer->ref);
}