Sign in to follow this  

OpenAL: Looping wave problem

This topic is 4306 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

Hi. I'll be short. My engine uses OpenAL Lib. I have some trouble, when playing looped sound, and pressing SHIFT + F5 (MS Visual Studio 2005), game terminates, but sound continue playing, and only way to stop it - reboot the PC. When i exit the geme "right way" (by clicking the quit button from the game menu or clicking on the "X" button) it stops. It stops because i stop it in the game exit sequence. But how i can handle it when i terminate the game in debug mode (SHIFT-F5) or if game crashes? There is no help i found in the docs provided by OpenAL. If someone knows something about my problem, please help!

Share this post


Link to post
Share on other sites

Just curious, starting the program again doesn't kill the sound ? Another question, next time you start your program, are you able to allocate as many sources as the previous time ?

I am using OpenAL but never did any looping sounds, so it is good to hear about this kind of problems (since OpenAL has few of them).

Share this post


Link to post
Share on other sites
No. Starting again is not killing the sound. Each time i start the programm and quit by SHIFT-F5 the new sound continue playing. Now there 5 loops playing at once :)
About sources, i don't know! My current build uses only 10 sources, since i'm just start working on it.

Share this post


Link to post
Share on other sites
usually if the program hangs, there won't be a process left running at the background. If the program is multithreaded then the process won't die until all the threads are finished (just my observation, correct me if I am wrong).

Share this post


Link to post
Share on other sites

This topic is 4306 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.

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