alGenBuffer returning AL_INVALID_OPERATION

View: New views
2 Messages — Rating Filter:   Alert me  

alGenBuffer returning AL_INVALID_OPERATION

by juliusctw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello

     I ran into this odd error where if I call alGenBuffers it would work, but the next time it won't, and then it would.  It basically works every even number I call this function , when it doesn't work, it returns AL_INVALID_OPERATION,  which when i digged into the source code, alGenBuffer doesn't seem to return this error .   Does anyone else have the same problem ??


I am using the latest download on the main website with source code
OpenAL Source (tar.gz format; February 11, 2006)

Re: alGenBuffer returning AL_INVALID_OPERATION

by juliusctw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello

    I have solved this problem, so i thought i'd share the results.  When i looked into the openal source code, it seems that alGenBuffer doesn't have any AL_INVALID_OPERATION,   and when i traced the code there were actually no errors. So the error was coming from else where but I didn't check it ,  so it was still in the buffer. I solved this problem by doing an alGetError right before calling the alGenBuffer and the problem was solved.