How should I unbind and delete OpenAL buffers?
- by Joe Wreschnig
I'm using OpenAL to play sounds. I'm trying to implement a fire-and-forget play function that takes a buffer ID and assigns it to a source from a pool I have previously allocated, and plays it. However, there is a problem with object lifetimes.
In OpenGL, delete functions either automatically unbind things (e.g. textures), or automatically deletes…