[Openal] Unqueuing all buffers from a stream
Nolan Darilek
nolan at thewordnerd.info
Tue Nov 28 09:52:40 PST 2006
I'm working on my streaming implementation and am confused about
something. I'm trying to implement random music on levels, so at some
point my code needs to unqueue everything associated with a stream
and queue new music. At the moment I'm getting an invalid operation
on my alUnqueueBuffers() call.
Based on what I've read in the programmer's manual, I'm guessing that
this is because I'm iterating through the list of AL_QUEUED_BUFFERS
and attempting to unqueue all of them, but because some/none of them
have been processed, the code is failing.
So, is there any way to unqueue all buffers from a stream, even those
that have not yet been processed? AFAIK the source has been stopped,
which I'd have thought was all that'd be necessary to yank
unprocessed buffers from the queue. Or am I missing/misunderstanding
something?
Thanks in advance.
More information about the Openal
mailing list