Jump to content
  • Advertisement
Sign in to follow this  
justking14

Pause, cancel, and play new in OpenAL

This topic is 1155 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've been making a game where the player can play their own music from the app, but when i try to pause it, it only pauses sometimes.  Other times it will just ignore my request or get caught between two beats going back and forth.

alSourcePause(source)

Also, when I try to cancel the current song and play another it  just leaves me in silence.
    alSourceStop(source);

    alDeleteSources(1, &source);

    alDeleteBuffers(BUFFERS_NUMBER, buffers);

 

 

Any advice?

 

Share this post


Link to post
Share on other sites
Advertisement

Without some code to look at, this is hard to figure out.  Take some time and create an example that highlights the problem without anything else.  Nine times out of ten, by doing this, you will find the problem.  For the other one, post away.

Share this post


Link to post
Share on other sites

Still no progress in fixing this, but i just noticed its giving me an error at

    AL_CALL(alGenSources(1, &source));

When I try to generate a new source after deleting the old one.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!