Skip to main content
Inspiring
October 18, 2011
Question

Will a native extention on Android fix the audio delay?

  • October 18, 2011
  • 4 replies
  • 3767 views

This is the only native extension i would need right now, before i dive into learning native extensions, can someone confirm or deny if this works?

Thanks

Specifically i am talking about audio delay when calling sound.play() on android. This delay is not present on iOS.

My thought is that perhaps creating an app where the native extion does all the audio.

This topic has been closed for replies.

4 replies

September 19, 2012

My game was originally packed with AIR 3.0 and I noticed that there is an issue with full screen on ICS devices. Basically the top Android bar was visible and all the assets were pushed down. So I packed it with AIR 3.4 what fixed this problem but I notices that devices with Android 2.3 now has about a one second delay when playing sound. Has there been any changes done to AIR 3.4 in terms of sound?

Mark.fromOP
Inspiring
September 19, 2012

Every update seems to shorten the sound delay at least on the Kindle Fire and NOOK, great job Adobe.

Known Participant
October 18, 2011

So will writing a natvie extension solve this?

Known Participant
October 18, 2011

If you find a solution could you post here? I am getting half a second delay with air but in native there is no delay.

Colin Holgate
Inspiring
October 18, 2011

You should do some research into low latency with native apps, it's a big issue there too. There are a couple of interesting things talked about here:

http://stackoverflow.com/questions/1448630/low-latency-audio-api-for-android

One thing shows a way to have only low latency devices be able to see your app in an app store. Another thing talks about how with Android 2.3 there were new APIs to give lower latency audio. Either you could write something that used those new APIs, or could encourage Adobe to be using them.

boat5Author
Inspiring
October 18, 2011

They seem to be talking about low latency, Im talking about guge latency, like 700+ ms (it seems)

The latency related to native  seem far far lower. But thank you for the link, i will investigate a little more.

If a native extention will even bring me a little closer, i will try it.

Colin Holgate
Inspiring
October 18, 2011

Well, the figures they talked about were 400mS or more. How much it is depends on the device. The figures of under 25mS refer to using the new API I think.