–main.lua
audio.reserveChannels(1)
–scene1
–In scene:create
bgMusic = audio.loadStream(“audio1.mp3”)
–In scene:show
audio.play(bgMusic, {channel=1})
–In scene:hide
audio.stop(1)
–scene2
-In scene:create
bgMusic = audio.loadStream(“audio2.mp3”)
–In scene:show
audio.play(bgMusic, {channel=1})
If I try to play 2 different audio files in the same scene on the same channel using play() stop() play() it does the work but not when I’m using composer and 2 scenes. Why is that?