diff options
author | Chris Robinson <[email protected]> | 2011-10-01 06:19:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-10-01 06:19:55 -0700 |
commit | 8b2e1fdd9a53d0145496b27f7ea0014124ce0d4a (patch) | |
tree | 3e574feaf4fec63825958c95782f9275525f5636 /OpenAL32/alExtension.c | |
parent | c99b32a8ecbab7aa332d511cf61a412179c0f983 (diff) |
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.
Diffstat (limited to 'OpenAL32/alExtension.c')
-rw-r--r-- | OpenAL32/alExtension.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c index c7214c13..3309338e 100644 --- a/OpenAL32/alExtension.c +++ b/OpenAL32/alExtension.c @@ -190,6 +190,10 @@ static const ALenums enumeration[] = { { "AL_BITS", AL_BITS }, { "AL_CHANNELS", AL_CHANNELS }, { "AL_SIZE", AL_SIZE }, + { "AL_INTERNAL_FORMAT", AL_INTERNAL_FORMAT }, + { "AL_BYTE_LENGTH", AL_BYTE_LENGTH }, + { "AL_SAMPLE_LENGTH", AL_SAMPLE_LENGTH }, + { "AL_SEC_LENGTH", AL_SEC_LENGTH }, // Buffer States (not supported yet) { "AL_UNUSED", AL_UNUSED }, |