🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Pause, cancel, and play new in OpenAL

Started by
1 comment, last by justking14 8 years, 11 months ago

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?

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.

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

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.

This topic is closed to new replies.

Advertisement