[Openal-devel] FW: alGetEnumValue precondition

Andrew McDonald myrmecophagavir at hotmail.com
Sun Nov 13 10:09:27 PST 2005


Sven Panne wrote:

> I think if more than 2 sentences are needed to explain this and even 
> people within Creative seem to be confused, I propose to explicitly state 
> the following simple rules in the spec:
>
> * All ALC extension queries (alcIsExtensionPresent, alcGetProcAddress, 
> alcGetEnumValue) need a non-NULL device argument, otherwise an 
> ALC_INVALID_VALUE error is recorded. This is already in the spec, I just 
> want to repeat it here for completeness.

Except for the ALC enumeration extension presumably? Although it's 
technically an extension to ALC, it's really implemented in the packaging 
structure (e.g. DLL) rather than any specific implementation contained in 
that package. You have to pass NULL as the device to get the list of 
available devices, because you haven't opened one yet.

--
Andy 



More information about the Openal-devel mailing list