In DirectSound, there was a very distinct concept of circular buffers
In particular there was a current read position, a current write position, and clear methods to GetPosition and lock the buffer and start writing.
I'm looking for a similar concept in OpenAL, but all I can find is looping an AL_STREAMING
buffer, and using AL_SAMPLE_OFFSET
to determine the current read position (and write say, 15 samples after that?)
OpenAL docs are down right now, but accessible here.
What is a safe way to declare a sound buffer that gets written to by the application as it is playing? Am I right about using a looping streaming buffer?