• Advertisement
Sign in to follow this  

Pause, cancel, and play new in OpenAL

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