I am building a small game engine optimized for android, everything works fine, and I can render around 100 animated sprites with a decent speed, but I am stuck with the sound.
when I play a sound there's a small delay, which is critical in action games, the first time I play a sound it runs fast, but after that there will be a delay.
I am using the usual:
var _mySound:Sound = new MySound();
I am using Flash CS5 with the android extension.
and testing on Samsung Galaxy S.
This is a known bug with the current version of AIR for Android, widely reported in the pre-release forums and logged with the engineers to be fixed.
Adobe staff have directly acknowledged it on those threads too, which I interpret as a good sign that it's a priority.
And yes, it is a pain!
what bitrate do you use? and what phone do you have?
I still get horible delay when calling play() on any audio file, at least 600-700ms.
I use a droidX, i just tried wavs and mp3s, seem to be the same.
its so bad for sound effects