Good Day. I’m gonna go straight to the point.
So yeah Here is my audio on my mainMenu
local options = { channel = 1, loops = -1, -- duration = 1000, -- fadein = 1000, onComplete = callbackListener } print("PLAY ME") backgroundMainMenu = audio.play( \_G.sounds.mus\_mainMenu , options) audio.seek(2000,backgroundMainMenu)
now it works fine, now I will goto another scene, this is where I stop my audio:
local options = { effect = "fade", time = 500, params = {from = "mainMenu"} } audio.stop(backgroundMainMenu) -- audio.dispose(backgroundMainMenu) -- backgroundMainMenu = nil composer.gotoScene("scene",options)
now when I go back to my mainMenu, the audio in it doesn’t play anymore, THanks in advance
EDITED: SOLVED
Channel problem only, already fixed it 