aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-07-12 15:53:11 -0700
committerChris Robinson <[email protected]>2010-07-12 15:53:11 -0700
commit42d9140afe5d4d689372684be0e82d1eeb5d72fa (patch)
tree78d006adff1c0fed74a85d52aadc56c801c27bc3
parent52ad28df92d643a5dd655fe1d5b63a6db47d9322 (diff)
Check the buffer's original format when queueing on a source
-rw-r--r--OpenAL32/alSource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 5d7ceced..6e5ed1e6 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1600,7 +1600,7 @@ AL_API ALvoid AL_APIENTRY alSourceQueueBuffers(ALuint source, ALsizei n, const A
if(BufferList->buffer)
{
Frequency = BufferList->buffer->frequency;
- Format = BufferList->buffer->format;
+ Format = BufferList->buffer->eOriginalFormat;
HadFormat = AL_TRUE;
break;
}
@@ -1621,9 +1621,9 @@ AL_API ALvoid AL_APIENTRY alSourceQueueBuffers(ALuint source, ALsizei n, const A
if(Frequency == -1 && Format == -1)
{
Frequency = buffer->frequency;
- Format = buffer->format;
+ Format = buffer->eOriginalFormat;
}
- else if(Frequency != buffer->frequency || Format != buffer->format)
+ else if(Frequency != buffer->frequency || Format != buffer->eOriginalFormat)
{
alSetError(Context, AL_INVALID_OPERATION);
goto done;