AAudio API updated

149 views
Skip to first unread message

Glenn Kasten

unread,
May 17, 2017, 5:04:35 PM5/17/17
to android-ndk
The AAudio API has been updated for Android O beta

Revised material includes:
 - updated header files are part of the NDK update

A summary of major changes from O DP to O Beta is listed below.
This is not a complete list; please consult the overview documentation and API reference for details.

We look forward to your comments and suggestions!
Glenn

----

Removed AAUDIO_FORMAT_PCM_I8_24 and AAUDIO_FORMAT_PCM_I32 from aaudio_audio_format_t.
Added AAUDIO_STREAM_STATE_DISCONNECTED to aaudio_stream_state_t.
Removed type aaudio_audio_thread_proc_t.
Removed functions AAudioStream_createThread and AAudioStream_joinThread.
Added functions:
  • AAudioStreamBuilder_setDataCallback
  • AAudioStreamBuilder_setErrorCallback
  • AAudioStreamBuilder_setFramesPerDataCallback
Merged file AAudioDefinitions.h into AAudio.h.

----


Felix Homann

unread,
May 18, 2017, 7:11:56 AM5/18/17
to android-ndk
Thanks for adding a callback interface!

Phil Burk

unread,
May 18, 2017, 11:39:01 AM5/18/17
to android-ndk
On Thursday, May 18, 2017 at 4:11:56 AM UTC-7, Felix Homann wrote:
Thanks for adding a callback interface!

You're welcome. Using callbacks you can now get FAST tracks using AAudio. So you can get lower latency than in DP1.


Jeff McKnight

unread,
May 23, 2017, 6:36:58 PM5/23/17
to android-ndk
Latency definitely seems better now.  I'm measuring about 80ms round-trip latency using the AAudio Echo sample app (hardware: Pixel phone; Android build: OPP2.170420.019) .  Is that roughly what we should expect at this point?

Jeff
----------

Phil Burk

unread,
May 25, 2017, 8:56:55 PM5/25/17
to andro...@googlegroups.com
Roughly. The read() was not getting a FAST path in DP2 but we are addressing that.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/36bed21a-d78f-4424-8e9a-5382f47987cb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages