Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Current workarounds for Air for Android audio latency / delay / lag in short sounds?

New Here ,
Jan 27, 2015 Jan 27, 2015

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

TOPICS
ActionScript
528
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 29, 2015 Jan 29, 2015

Dear are you listening to the sound using a Bluetooth headphone?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 29, 2015 Jan 29, 2015
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines