I have set my app so the buttons click when I press them. This works fine in the sumulator, but on the device there is about a half a second lag (I know that doesn’t sound like much, but when changing scenes and stuff the sound happens after the function has been carried out). Any suggestions as to why this is?
audio.setVolume( mVol/10, {channel = 1})
audio.setVolume(sVol/10, {channel = 2})
local click = audio.loadSound("click.WAV")
local function handleButtons (event)
if event.phase == "began" then
if event.target.myId ~= "fade" then
event.target.alpha = .5
timer.performWithDelay(100, function() event.target.alpha = 1 end,1)
audio.play(click, {channel = 2})
end
end
end
[import]uid: 116264 topic_id: 26680 reply_id: 326680[/import]