[Openal] alSourceQueueBuffers Report Error

Garin Hiebert garinh at cheesetoast.net
Thu Oct 26 19:56:52 PDT 2006


You'll want to track down more precisely where the error is actually 
taking place, and then look up why the invalid operation error would be 
taking place.  OpenAL's error mechanism is such that an error stays set 
until it is reset by checking the error state.  So, it appears that the 
way you are checking for errors only indicates that an error occurred 
sometime since the last check, not that it occurred on the 
alSourceQueueBuffers call that precedes the error check.

Here's the scheme  you want to use:

-- alGetError()
-- OpenAL operation(s)
-- error = alGetError;
-- if (error != AL_NO_ERROR), report error...

Another thing to note is that not all AL errors should result in your 
application stopping audio operations -- many errors are benign, and 
most are recoverable.

Garin



More information about the Openal mailing list