[Openal] [openAl Soft] alGetString returning NULL pointer?

Andre Krause post at andre-krause.net
Sun May 18 06:22:34 PDT 2008


Miika Ahonen wrote:
> On Sat, May 17, 2008 at 1:09 PM, Andre Krause <post at andre-krause.net> wrote:
>> currently, alGetString returns a null pointer if there is no valid context.
>> wouldnt it be a better idea to always return a valid string, so for example
>> an error message string that says something like "no valid context" or such?
> 
> That string would be unrelated to the actual error number you tried
> fetching it for, so it would be wrong.
> 
 >
maybe my english is too bad, or i should just read the spec for alGetString.

but i thought that alGetString shall return a description for every possible 
error number.
so if the error is "no valid context" - why not spit out a message instead of a 
NULL pointer ?
cant get it...



More information about the Openal mailing list