Hey guys,
so this should be an easy question to answer for you seasoned corona experts. I am working on a story book, so in my code I have an audio handle.
local narrativeAudio
narrativeAudio = audio.loadSound("nar"..global.thisStoryNumber.."p"..global.thisPageNumber..".mp3")
So with each new page that loads I want to dispose the current audio that is associated with the “narrativeAudio” handle. According to the documentation I also want to set my audio handle to Nil. This is fine but does that mean I have to create a new variable to be a new audio handle each time a page is changed? I would like to be able to use “narrativeAudio” only. Is there a way to unload and dispose of audio properly while then reusing the same audio handle for my next sound file?
Or perhaps im going about this the wrong way, any thoughts would be appreciated. [import]uid: 19620 topic_id: 25896 reply_id: 325896[/import]