Jump to content
  • Advertisement
Sign in to follow this  

OpenAL Help

This topic is 4732 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
If it crashes even on that then there is two things you need to try:

1. Go to the OpenAL SDK site and make sure you are using the latest version as well as get the latest runtime.

2. Update your sound drivers

Now after that, try again with those examples on DevMaster and see if you can get them to run.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!