I have been using the new audio api’s without issue…except for one scenario.
When my app suspends the audio stops…but does not restart on resuming the app.
I have tried numerous ideas…but can not get this.
Here is my current code.
elseif event.type == "applicationSuspend" then
if backgroundMusicChannel then
audio.pause(backgroundMusicChannel) end
--audio.stop(backgroundMusicChannel)
--audio.dispose(backgroundMusic)
print("Suspend")
elseif event.type == "applicationResume" then
print("Resume")
audio.resume(backgroundMusicChannel)
--backgroundMusic = audio.loadStream("audio\_background.mp3")
--backgroundMusicChannel = audio.play(backgroundMusic, {channel=2, loops=-1, fadein=1000})
BTW…
kam187, love your blog with the tips…super helpful… [import]uid: 39506 topic_id: 11266 reply_id: 311266[/import]