Pause & UnPause Bg Music
At the risk of being chastised for using the old SoundEngine api that came with the now defunct Crash Landing example - I'm looking for some help to Pause and UnPause bg music.
I can not use stop/play because the sound restarts at the beginning.
Anyone happen to have a couple simple methods I can re-use?
I can not use stop/play because the sound restarts at the beginning.
Anyone happen to have a couple simple methods I can re-use?
Sorry but the correct answer is to stop using the SoundEngine code. Even if you manage to keep using that for effects (without crashing or leaking) you really should start using AVAudioPlayer for background music.
Or OpenAL. Or FMOD (if you have the $$)
Aside from the memory leak issue on UnloadEffect (which is very easy to fix) theres nothing wrong with this api. It plays mp3s for bg music and its very easy to use. (And yes, I have managed to use it in a couple games already with no stability or memory issues - feel free to buy them
http://www.sumiguchi.com)
But i'm not here to defend it or argue about it. Just wondering if anyone made a pause/unpause functions and would be willing to share.
http://www.sumiguchi.com)But i'm not here to defend it or argue about it. Just wondering if anyone made a pause/unpause functions and would be willing to share.
I think you missed my point - you can keep using that SoundEngine code for FX if it's working for you (it's just an OpenAL wrapper at that point), but play your music with AVAudioPlayer. It's an Apple API and provides the functionality you need - don't fight it
Ok.... grrrrr!
It was actually pretty painless to switch over to AVAudioplayer. Haven't done a lot of testing - but so far so good.
Thanks for the tough love
It was actually pretty painless to switch over to AVAudioplayer. Haven't done a lot of testing - but so far so good.
Thanks for the tough love
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Pause/Resume on IPod touch | tonysameh | 0 | 2,014 |
Jul 26, 2010 06:34 AM Last Post: tonysameh |
|

