We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Unpausing a looped sound
Page Index Toggle Pages: 1
Unpausing a looped sound? (Read 880 times)
Unpausing a looped sound?
Feb 24th, 2010, 12:46pm
 
Okay, so I'm trying to pause the background music in my game when the game is paused, then resume playing it once the game is unpaused.
Calling bgm.pause() works fine, the problem is that if I unpause with bgm.loop() it resets the playhead to the start of the song, and if I unpause with play() it doesn't loop at the end. I tried cue() but it causes too much lag to be a viable option. Help?
Re: Unpausing a looped sound?
Reply #1 - Feb 24th, 2010, 2:18pm
 
What library are you using?

What happens if you call pause() again?

-spxl
Page Index Toggle Pages: 1