hey,
i have a problem on ipad, i am using this code to play a sound in my menu:
local MenuSound = audio.loadStream("sons/menu.mp3");
local freeChan = audio.findFreeChannel()
local MnuSound = audio.play( MenuSound, { channel=freeChan } )
audio.setVolume(1, { channel=freeChan} )
when i change to a different scene with director, i use this code to stop the sound:
audio.stop(freeChan)
audio.stop(MenuSound)
audio.stop(MnuSound)
audio.dispose(freeChan)
audio.dispose(MenuSound)
audio.dispose(MnuSound)
freeChan=nil
MenuSound=nil
MnuSound=nil
director:changeScene("game");
"i just tried to stop everything cus it wasnt working."
when i come back from my game scene i run the play code again, the sound plays for some 3-4 seconds and just stops.
i tried with the loadsound instead, it works but takes some time to load the sound.
what can be the problem? thks