[Openal] Questions about alutInit()
D. Hageman
dhageman at dracken.com
Mon Feb 7 20:38:31 PST 2005
alutInit is not technically part of the specification and therefore
potentially not available on a specific platform. How it is implemented
on each platform also varies.
On Mon, 7 Feb 2005, bernardo escalona wrote:
> Hello fellow audio programmers.
>
> Ive noticed in most OpenAL tutorials they suggest initializing AL the
> "manual" way":
>
> ALCcontext *Context;
> ALCdevice *Device;
> Device = alcOpenDevice((ALubyte*)"OSS");
> Context=alcCreateContext(Device, NULL);
> alcMakeContextCurrent(Context);
>
> However Ive always used the ALUT init function:
>
> alutInit(0, NULL);
>
> Which has always worked fine for me. It grabs the native device as default
> and creates the context automatically. Is there any reason to do it manually?
>
> Another question, alutInit takes two arguments, but if you look at the actual
> function declaration you'll see thay they are not used. Did they intend for
> the func to take the desired device name as argument and never got around to
> it?
//========================================================\\
|| D. Hageman <dhageman at dracken.com> ||
\\========================================================//
More information about the Openal
mailing list