Sign in to follow this  
shane1985

OpenAL Help

Recommended Posts

shane1985    126
I'm working on putting OpenAL into my project, and am running into this problem. Whenever alutInit() is called, the program crashes. I have linked with all the appropriate libraries, and have included all the al files. Also, I wrote a test program in another project, where everything works alright. This leads me to believe there's a problem in the project settings. Does anyone have any idea what the problem could be? Thanks! -Shane

Share this post


Link to post
Share on other sites
Gorax    202
The problem's probably in the ALut library (I've had a few issues with it), but it's not hard to replicate the functions, and could solve your problems (it solved mine). Also, ALut's being deprecated in OpenAL 1.1, so you should consider alternatives anyway. ;)

Share this post


Link to post
Share on other sites
shane1985    126
I assume you mean replacing the alutInit with something like this:

Device = alcOpenDevice((ALubyte*)"DirectSound3D");

if (Device == NULL)
exit(-1);

//Create context(s)
Context=alcCreateContext(Device, NULL);
//Set active context
alcMakeContextCurrent(Context);
// Clear Error Code
alGetError();

I tried this before, and it also crashes, on the first line.

Any ideas?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this