Discussion:
What attributes are retrieved with ALC_ALL_ATTRIBUTES?
Troy Watson
2013-01-08 08:35:46 UTC
Permalink
Table 6.1 in the spec lists five attributes used in context
creation: ALC_FREQUENCY, ALC_REFRESH, ALC_SYNC, ALC_MONO_SOURCES and
ALC_STEREO_SOURCES.

However, after context creation there appears to be one extra attribute you
can query for:

// Size of the array required to hold the key/value pairs plus terminating 0
ALCint attributes_size;
alcGetIntegerv( device, ALC_ATTRIBUTES_SIZE, 1, &attributes_size );
std::vector< ALCint > attributes( attributes_size );
alcGetIntegerv( device, ALC_ALL_ATTRIBUTES, attributes_size, &attributes[ 0
] );

On my OpenAL Soft 1.14 install attributes_size is 13 which implies room for
six attribute key/value pairs, plus the terminating zero.

What (if any) is the sixth attribute returned by ALC_ALL_ATTRIBUTES?
Iterating over the values returned, it seems there probably isn't one as
the values for the sixth are always random, but I just want to be sure I'm
not missing something.

Thanks!
Chris Robinson
2013-01-08 08:56:09 UTC
Permalink
Post by Troy Watson
On my OpenAL Soft 1.14 install attributes_size is 13 which implies room for
six attribute key/value pairs, plus the terminating zero.
What (if any) is the sixth attribute returned by ALC_ALL_ATTRIBUTES?
Iterating over the values returned, it seems there probably isn't one as
the values for the sixth are always random, but I just want to be sure I'm
not missing something.
The sixth attribute would be ALC_MAX_AUXILIARY_SENDS, which is part of
EFX. It's the number of auxiliary sends available on each source object. :)
Troy Watson
2013-01-08 22:57:11 UTC
Permalink
Thanks for clearing that up. Looks like I still have some reading to do,
and then probably more questions! :)
Post by Chris Robinson
Post by Troy Watson
On my OpenAL Soft 1.14 install attributes_size is 13 which implies room for
six attribute key/value pairs, plus the terminating zero.
What (if any) is the sixth attribute returned by ALC_ALL_ATTRIBUTES?
Iterating over the values returned, it seems there probably isn't one as
the values for the sixth are always random, but I just want to be sure I'm
not missing something.
The sixth attribute would be ALC_MAX_AUXILIARY_SENDS, which is part of
EFX. It's the number of auxiliary sends available on each source object. :)
______________________________**_________________
Openal mailing list
http://opensource.creative.**com/mailman/listinfo/openal<http://opensource.creative.com/mailman/listinfo/openal>
Loading...