Hi guys,
Im starting to really pull my hair out over this issue. All my sound effects that play after collision have a huge lag until played. I have done loads of research and understand that this use to be an issue pre Android 4.1 but I am using 4.3 on an HTC One and I am still getting this huge delay. I have tried using .wav and .mp3 files and the same thing is happening. I am not doing anything special, just loading them using, placing them in a function and then activating on collision. Because the lag is so similar across the board and is so large it has to be down to something I’m doing wrong? It cant be down to something like bit rate/mono sound surely? I have used audacity to make sure all the sounds are mono anyway but to no avail. Did anyone else have this issue which they sorted.
local sndCoin2 = audio.loadSound("audio/coina.wav") local function playCoinSound() audio.play(sndCoin2) end function monkeyCollision (self, event) if event.phase =="began" then if event.target.name == "coin" and event.other.name == "hero" then playCoinSound() etc...