Thanks Brent,
Because of that documentation code I quoted earlier here. I tried to do pause and it does pause but it won’t turn the music back on when I call audio.play on same audioHandle. Please note that I load my music as stream.
Here is my pause and un-pause code:
sfx.playMusic = function() -- TODO: Just did it fast and dirty, read Corona documentation later as I think I need to clean this up later on. if not musicHandle then musicHandle = audio.loadStream( "music.mp3" ) end local musicChannel = audio.play( musicHandle, {channel = musicChannel, loops=-1} ) end ---------------------------------------------------------------------------------------- -- ---------------------------------------------------------------------------------------- sfx.pauseMusic = function() -- audio.stop() -- According to Corona docs, calling this on a loadStream doesn't stop, but pause it. audio.pause(musicHandle) -- According to Corona docs, calling this on a loadStream doesn't stop, but pause it. end