Everything looks right with this code, so can anyone please critique it for me and tell me why it isn’t working?
-- BEGINNING OF MUSIC FUNCTIONALITY bgTune = audio.loadStream("music/backgroundMusic.mp3") audio.loop = -1 audio.channel = 1 audio.play( bgTune ) function bgMusic:tap (event) if audio.play(Tune) then audio.stop (bgTune) end end bgMusic:addeventListener ( "tap", bgMusic ) -- END OF MUSIC FUNCTIONALITY
Thanks in advance.