Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Dear are you listening to the sound using a Bluetooth headphone?
Copy link to clipboard
Copied
No no headphones. As far as I gathered a few years ago people just had to accept that flash with android produces latency when playing short sounds, I was wondering if it's still an issue, it is for me obviously. Whether it's a tap or a click event doesn't make a difference. Playing around with mp3 / wav settings doesn't seem to make a difference, I'm making a music app so quick response time is necessary, if someone has done something similar and knows the best workaround I'd be very willing to hear it
Thanks!
J
Find more inspiration, events, and resources on the new Adobe Community
Explore Now