I am testing an Android app I am making in AIR and I'm noticing that there is ~300-500ms of lag between when a sound effect is supposed to play and when it actually plays. There are no other performance problems. This is occurring in an action game running at 60fps so the audio delay is very noticeable and irritating. I searched around for solutions but didn't find much out. More details:
I am playing the sound effects using the built-in sound classes, namely SoundChannel. The sound effects were created as WAV files with no gap at the beginning, imported into CS6, and exported as symbols (with MP3 encoding) in an SWF. This prevents them from having the dreaded MP3 gap at the beginning and there is no delay on the computer. The device in question is an HTC One.
Is there any way around this or is it just a major problem in AIR?