Current workarounds for Air for Android audio latency / delay / lag in short sounds?
Hi,
I'm sorry if this is a noob question, I'm basing this on two hours of Googling outdated information and am wondering what the current best solutions for this problem are? (to remove audio latency when playing short sounds for a music-related app, using Flash Professional and Air for Android).
Here's the current standard as3 code I'm using:
var hF:hardFunk = new hardFunk();
but1.addEventListener(TouchEvent.TOUCH_BEGIN, but1press);
function but1press(event:TouchEvent):void
{hF.play();}
It gets a delay of between 100-300ms, and the delay is random, same whether it's raw, adpcm or mp3, tried putting a backing track behind it, all did nothing.
I've heard talk of Native Extensions, asset managers, pre-loading sounds etc. but can't seem to find any up to date guides that aren't from 2011-2013, is this straight forward to resolve now or is it still an ongoing problem?
Thanks,
James