From 42d9140afe5d4d689372684be0e82d1eeb5d72fa Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 12 Jul 2010 15:53:11 -0700 Subject: [PATCH] Check the buffer's original format when queueing on a source --- OpenAL32/alSource.c | 6 +++--- 1 file 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;