[Openal] alSourceQueueBuffers Report Error

Garin Hiebert garinh at cheesetoast.net
Fri Oct 27 01:31:16 PDT 2006


> 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