Discussion:
AAudio documents functions that do not exist in the NDK
'Haydn' via android-ndk
2018-04-05 11:06:50 UTC
Permalink
Hi,

The following AAudio functions are documented
<https://developer.android.com/ndk/reference/group___audio.html> but
unavailable in the NDK:

AAudioStreamBuilder_setUsage
AAudioStreamBuilder_setContentType
AAudioStreamBuilder_setSessionId

AAudioStream_getUsage
AAudioStream_getContentType
AAudioStream_getSessionId

This is a problem for me because I need to associate the
AcousticEchoCanceller with an AAudio input stream but I cannot call
getSessionId on it. Neither can I preset the use of the AEC because I can't
specify the content/usage type of the stream on the builder.

When will these missing features be implemented in Android?

We are using the AAudio API within our SIP based phone app. The SIP
'engine' is based on Linphone and is written in C. We're targeting API 26
and using NDK version r15c.

Regards,
Haydn
--
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+***@googlegroups.com.
To post to this group, send email to android-***@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/f5c0365a-ffe4-4463-aeba-d146210ead3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Glenn Kasten
2018-04-05 16:23:01 UTC
Permalink
Thank you for reporting, tracking at internal bug ...2550
Post by 'Haydn' via android-ndk
Hi,
The following AAudio functions are documented
<https://developer.android.com/ndk/reference/group___audio.html> but
AAudioStreamBuilder_setUsage
AAudioStreamBuilder_setContentType
AAudioStreamBuilder_setSessionId
AAudioStream_getUsage
AAudioStream_getContentType
AAudioStream_getSessionId
This is a problem for me because I need to associate the
AcousticEchoCanceller with an AAudio input stream but I cannot call
getSessionId on it. Neither can I preset the use of the AEC because I can't
specify the content/usage type of the stream on the builder.
When will these missing features be implemented in Android?
We are using the AAudio API within our SIP based phone app. The SIP
'engine' is based on Linphone and is written in C. We're targeting API 26
and using NDK version r15c.
Regards,
Haydn
--
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+***@googlegroups.com.
To post to this group, send email to android-***@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/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Dan Albert' via android-ndk
2018-04-05 16:24:28 UTC
Permalink
Those APIs weren't in the NDK until r17 beta 1 afaict.

Glenn: are those P APIs?
Post by Glenn Kasten
Thank you for reporting, tracking at internal bug ...2550
Post by 'Haydn' via android-ndk
Hi,
The following AAudio functions are documented
<https://developer.android.com/ndk/reference/group___audio.html> but
AAudioStreamBuilder_setUsage
AAudioStreamBuilder_setContentType
AAudioStreamBuilder_setSessionId
AAudioStream_getUsage
AAudioStream_getContentType
AAudioStream_getSessionId
This is a problem for me because I need to associate the
AcousticEchoCanceller with an AAudio input stream but I cannot call
getSessionId on it. Neither can I preset the use of the AEC because I can't
specify the content/usage type of the stream on the builder.
When will these missing features be implemented in Android?
We are using the AAudio API within our SIP based phone app. The SIP
'engine' is based on Linphone and is written in C. We're targeting API 26
and using NDK version r15c.
Regards,
Haydn
--
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
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/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to android-***@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/CAFVaGht1VGDEBm6wsQs7D8mOSrs%2BnywjAX0gjOogbf7fNYBrQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Glenn Kasten
2018-04-05 20:14:31 UTC
Permalink
Dan - yes those were added in P developer preview

Haydn - sorry for the confusing.

If you're using P developer preview from
https://developer.android.com/preview/index.html
then please try the NDK that Dan mentioned. It is available here:
https://developer.android.com/ndk/downloads/index.html
Hopefully that NDK will have the APIs that go along with the online
documentation,
but please let me know if they don't.

If you're _not_ using P developer preview, then that's
due to the documentation bug ...2550. We should be listing
minimum API version number in the docs, but we don't yet.
Post by 'Dan Albert' via android-ndk
Those APIs weren't in the NDK until r17 beta 1 afaict.
Glenn: are those P APIs?
Post by Glenn Kasten
Thank you for reporting, tracking at internal bug ...2550
Post by 'Haydn' via android-ndk
Hi,
The following AAudio functions are documented
<https://developer.android.com/ndk/reference/group___audio.html> but
AAudioStreamBuilder_setUsage
AAudioStreamBuilder_setContentType
AAudioStreamBuilder_setSessionId
AAudioStream_getUsage
AAudioStream_getContentType
AAudioStream_getSessionId
This is a problem for me because I need to associate the
AcousticEchoCanceller with an AAudio input stream but I cannot call
getSessionId on it. Neither can I preset the use of the AEC because I can't
specify the content/usage type of the stream on the builder.
When will these missing features be implemented in Android?
We are using the AAudio API within our SIP based phone app. The SIP
'engine' is based on Linphone and is written in C. We're targeting API 26
and using NDK version r15c.
Regards,
Haydn
--
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
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/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to android-***@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/61e3b655-cb3a-4057-a6b1-b251d489a1ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Haydn' via android-ndk
2018-04-06 11:00:42 UTC
Permalink
Hi Glenn, thanks for your response. The missing functions are indeed
available in the NDK r17 beta.

Given the Oreo AAudio API, is there any other way of binding to the
AcousticEchoCanceller?
Post by Glenn Kasten
Dan - yes those were added in P developer preview
Haydn - sorry for the confusing.
If you're using P developer preview from
https://developer.android.com/preview/index.html
https://developer.android.com/ndk/downloads/index.html
Hopefully that NDK will have the APIs that go along with the online
documentation,
but please let me know if they don't.
If you're _not_ using P developer preview, then that's
due to the documentation bug ...2550. We should be listing
minimum API version number in the docs, but we don't yet.
Post by 'Dan Albert' via android-ndk
Those APIs weren't in the NDK until r17 beta 1 afaict.
Glenn: are those P APIs?
Post by Glenn Kasten
Thank you for reporting, tracking at internal bug ...2550
Post by 'Haydn' via android-ndk
Hi,
The following AAudio functions are documented
<https://developer.android.com/ndk/reference/group___audio.html> but
AAudioStreamBuilder_setUsage
AAudioStreamBuilder_setContentType
AAudioStreamBuilder_setSessionId
AAudioStream_getUsage
AAudioStream_getContentType
AAudioStream_getSessionId
This is a problem for me because I need to associate the
AcousticEchoCanceller with an AAudio input stream but I cannot call
getSessionId on it. Neither can I preset the use of the AEC because I can't
specify the content/usage type of the stream on the builder.
When will these missing features be implemented in Android?
We are using the AAudio API within our SIP based phone app. The SIP
'engine' is based on Linphone and is written in C. We're targeting API 26
and using NDK version r15c.
Regards,
Haydn
--
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
<javascript:>.
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/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/fd70bf29-3209-45ae-8f55-d79cef0f62f5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to android-***@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/92ac1b5c-119e-4f11-9ac4-903811ffb72b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...