Skip to main content
jamesc13322996
Participant
January 28, 2015
質問

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

  • January 28, 2015
  • 返信数 1.
  • 559 ビュー

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

このトピックへの返信は締め切られました。

返信数 1

Inspiring
January 29, 2015

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

jamesc13322996
Participant
January 29, 2015

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