Add buffer properties to get the internal format, and the length in bytes, samples...
commit8b2e1fdd9a53d0145496b27f7ea0014124ce0d4a
authorChris Robinson <chris.kcat@gmail.com>
Sat, 1 Oct 2011 13:19:55 +0000 (1 06:19 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 1 Oct 2011 13:19:55 +0000 (1 06:19 -0700)
tree3e574feaf4fec63825958c95782f9275525f5636
parentc99b32a8ecbab7aa332d511cf61a412179c0f983
Add buffer properties to get the internal format, and the length in bytes, samples, and seconds

The provided buffer lengths correspond to the source offsets, in that the byte
length specifies the end of the byte offset (ie, when the buffer is used for a
static source, the offset will range between 0 (inclusive) and the byte length
(exclusive)). Although an application could use the AL_SIZE, AL_CHANNELS,
AL_BITS, and AL_FREQUENCY properties to find the length in samples and seconds,
the byte length cannot be reliably calculated this way.
OpenAL32/Include/alBuffer.h
OpenAL32/Include/alMain.h
OpenAL32/alBuffer.c
OpenAL32/alExtension.c