[Openal] alSourceQueueBuffers Report Error

steve steve at astrocorp.com.tw
Fri Oct 27 01:55:04 PDT 2006


Thank you for quick reply.

Did you mean that there is no way to remove the queued buffers that are not
played yet?

Steve 


-----Original Message-----
From: astrocorp at host.ms109.net [mailto:astrocorp at host.ms109.net] On Behalf
Of Garin Hiebert
Sent: Friday, October 27, 2006 4:31 PM
To: steve
Cc: openal at opensource.creative.com
Subject: Re: [Openal] alSourceQueueBuffers Report Error


> I have another error exception for alSourceUnqueueBuffers ().
>
> OpenAL reports "Invalid Value" and My program crashs.
>   

For that call, an "invalid value" error would occur if "n" buffers can't be
removed from the queue.  The only buffers which can be removed from a queue
are buffers which are marked as played, which means that they either
actually played, or the source has been stopped with alSourceStop (which
marks all queued buffers processed).

If your application isn't already doing so, make sure it asks how many
buffers are processed before making any assumptions about how many can be
removed:

alGetSourcei (SourceID, AL_BUFFERS_PROCESSED, &iProcessed);

If you then remove iProcessed or fewer buffers from the queue, it should
work.

If the crash is happening inside OpenAL, please report the call where it is
occurring -- we try to avoid those...

Garin









More information about the Openal mailing list