Troy Watson
2013-01-08 08:35:46 UTC
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!
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!