Hello everybody !
I feel a soft sound offbeat when I build my app.on my phone. It doesn’t occurs when I’m on simulator.
Perhaps my code is bad ?
Here :
function scene:addScore()
self.score = self.score + 1
audio.play(‘file.wav’)
self:updateScoreText()
end
To put it a bit clearer, I have to push out of the screen some enemies that coming from the skies.
This function is called in a Runtime Event (“enterFrame”) which is checking everytime if an enemy is enough for to remove him and then append the score and play the sound.
It works fine on simulator but the sound takes about 0,7 seconds to load on my Samsung S4 Galaxy - Android 4.4.2
and that’s a little frustrating.
Thank you and forgive my bad english. ~