Howdy.
I’m gettin an OpenAL sound system up and running in my engine, and it is working for the most part.
However, I am getting an INVALID_OPERATION error when calling AL10.alDeleteBuffers() on one of my buffers.
Basically, I have a non-looping source that is playing. When I detect that the source is no longer playing, e.g. it is no longer in state AL_PLAYING, I attempt to dispose of the buffer that was backing the source.
This is where my error comes in. alDeleteBuffers() should work, and I’ve checked to make sure I’m not calling it multiple times.
Are there some caveats I should look for when using this function?
The © OpenAL documentation states that an AL_INVALID_VALUE occurs if you try to specify < 1 buffer count to delete, and a AL_INVALID_NAME if any of your buffers are invalid, but does not mention AL_INVALID_OPERATION.
Thanks!
