[Openal] alGenBuffers generates invalid values (PC only)
Chris Robinson
chris.kcat at gmail.com
Tue Aug 28 15:08:53 PDT 2007
On Tuesday 28 August 2007 02:45:35 pm griffin2000 wrote:
> The handles generated are all invalid (and cause AL_INVALID_NAME errors
> whenever they are used). Though the actual alGenBuffers call does cause an
> error. This code works fine on Mac, any idea what the problem could be ?
According to the spec, alGenBuffers is not supposed to be able to generate
that error. Perhaps it's a previous function call which missed an error
check? The actual failure of that function should really only be caused by
being out of memory, which shouldn't really happen with, say, one or two
buffers when no others are generated.
For the problem, perhaps the context is not set right. The Mac version may be
more lenient about that, but you're not supposed to be able to generate
buffers (or use any non-alc* function) without a context set, even though
buffers aren't context-specific.
> Here are the values generated:
When a function fails, it's generally not supposed to modify any data you pass
to it (unless otherwise specified by the spec). The "generated" values are
probably uncleared memory.
More information about the Openal
mailing list