I have a looping sound that should play only when a sprite is inside an area, so i initiate the sound with:
local GravitySound = Sound.new("Sound/Gravity2.wav")
soundchannel = GravitySound:play()
soundchannel:setLooping(true)
soundchannel:setPaused(true)
and when I want the sound to play:
soundchannel:setPaused(false)
It works most of the time but if soundchannel:getPosition() is 0 the sound does not start to play.
Comments
How often does it happen to you?
Or maybe specific platform where it happens?
Have you tried:
Likes: anskurt
I don't think the time was the issue, I tried to use GravitySound:setPositition(100) but the when the sound didn't play getPosition() returned 0 anyway.
The platform was IOS 6.0.1with gideros player. It happened around 1/10th of the time.