Richard,
I'm not sure if there are other OpenAL implementations of the static buffer extension. As far as the Mac OSX implementation goes, it is important that the buffer memory NOT be deleted while still in use. In practice, that means that the same rules apply to static buffer objects as regular buffer objects. If calling alDeleteBuffers() is successful and produces no error, then it is safe to delete the buffer memory. The same goes for changing the data pointed to by the OpenAL Buffer object. If calling alBufferDataStatic (or alBufferData) is successful on a buffer object, then it is safe to delete your memory.
This extension is a very sharp knife in that if the application deletes the audio data memory while it is still being used in the render chain, it is going to cause a crash.
-bob aron
____________________________________________
CoreAudio Team • Apple Inc.
On Jul 6, 2009, at 12:42 PM, Richard Furse wrote:
Hi there - does anyone know where the documentation for the
ALC_EXT_STATIC_BUFFER extension is? I can't find it in the repository. This
is the extension that documents alBufferDataStatic(). I'm wondering
particularly if it allows any special behaviour around buffer deletion...
Cheers,
--Richard
_______________________________________________
Openal-devel mailing list
Openal-devel@...http://opensource.creative.com/mailman/listinfo/openal-devel
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel