audio lag

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]

Is this on android or iOS? [import]uid: 84637 topic_id: 26680 reply_id: 108674[/import]

Android
[import]uid: 116264 topic_id: 26680 reply_id: 108726[/import]

This is a known problem with android and unfortunately isn’t corona related. See this: http://developer.anscamobile.com/forum/2011/01/01/audio-delay-android [import]uid: 84637 topic_id: 26680 reply_id: 108843[/import]

Is there an alternative way of playing sound with adjustable volume for different sounds?
[import]uid: 116264 topic_id: 26680 reply_id: 108860[/import]

two words Media API

Cheers [import]uid: 39088 topic_id: 26680 reply_id: 108862[/import]