[Openal] no context open on non-dev computers
Tim Mahrt
runeedge at gmail.com
Sun Oct 8 13:06:16 PDT 2006
Vrej,
I believe that:
devices=alcGetString(NULL, ALC_DEVICE_SPECIFIER)
device=alcOpenDevice(devices);
is the same as:
device=alcOpenDevice(NULL);
(unless there is some subtle difference I'm missing?)
I use the latter one and that opens the default device.
Tim
On 10/8/06, Vrej Melkonian <vmelkon at yahoo.com> wrote:
> You can do
>
> defaultDeviceName=alcGetString(NULL,
> ALC_DEFAULT_DEVICE_SPECIFIER)
>
> which should be the name of the default device and
> then
>
> devices=alcGetString(NULL, ALC_DEVICE_SPECIFIER)
>
> device=alcOpenDevice(devices);
>
> That's more or less what I do, with some error
> checking added. I use the code in the SDK.
>
> I don't call alcOpenDevice(NULL)
> devices is the actual name of the default device.
>
> --- Tim Mahrt <runeedge at gmail.com> wrote:
>
> > Is there no way around that? I included the
> > OpenAL32.dll and
> > OpenAL32.lib (for building) in my project. I would
> > have thought that
> > to be sufficient? My concern is that on computers
> > where installing is
> > disabled, the user will not be able to run the
> > program.
> > Thanks,
> > Tim
> >
> > On 10/8/06, Vrej Melkonian <vmelkon at yahoo.com>
> > wrote:
> > > Install the OpenAL runtime
> > > http://www.openal.com
> > >
> > > --- Tim Mahrt <runeedge at gmail.com> wrote:
> > >
> > > > Hi,
> > > > I've developed a little test program for
> > > > demonstrating OpenAL,
> > > > however, it seems that it only works on my
> > computer.
> > > > When I run it on
> > > > someone elses, alcOpenDevice(NULL), fails to
> > return
> > > > a device. This
> > > > has been tried on three different computers that
> > I
> > > > do not develop on.
> > > > I did get my project compiling on one of them
> > > > though, however, it was
> > > > unable to open a device.
> > > >
> > > > Are there some pre-requisites required to get an
> > > > OpenAL context? Does
> > > > the user have to install anything? I tried to
> > make
> > > > my project
> > > > stand-alone since its just a simple demo.
> > > >
> > > > If it helps, the file can be downloaded here:
> > > >
> > >
> >
> https://netfiles.uiuc.edu/tmahrt2/shared/OpenGL/OpenAL/OpenALTestWithCode.zip
> > > > Just run the exe file. Pressing "z" on your
> > > > keyboard will continually
> > > > loop a laser sound. Pressing "x" will play it
> > once.
> > > > The sound is
> > > > "tied" to the moving box. The listener is at
> > (0, 0,
> > > > 0) although the
> > > > camera is not.
> > > >
> > > > Thanks,
> > > > Tim
> > > > _______________________________________________
> > > > Openal mailing list
> > > > Openal at opensource.creative.com
> > > >
> > >
> >
> http://opensource.creative.com/mailman/listinfo/openal
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > > _______________________________________________
> > > Openal mailing list
> > > Openal at opensource.creative.com
> > >
> >
> http://opensource.creative.com/mailman/listinfo/openal
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
More information about the Openal
mailing list