Thank you for your post.Android "M" includes new SDK APIs for explicit routing; seeA similar explicit routing API is not available in the "M" NDK (native audio based on OpenSL ES).
You can use JNI to call SDK APIs from native code.Note that the OpenSL ES buffer completion callback runs on a non-JNI-capable thread,so you cannot call SDK APIs from that callback handler and will need to use a JNI-capable thread instead.
If you are requesting a pure native API, please file a feature request here:I cannot give forward-looking statements, such as about plans.
OK. So is it true that if we read from Java AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE we will get sample rate of current primary audio output device?
If I switch to Speaker, I will get sample rate to built-in speaker.
If I plug in USB Headphones, I will get sample rate for USB Headphone device (BTW what if device supports multiple sample rates).
Is this true?
What about Input device (e.g. USB Microphone). The is no equivalent property for microphone sample rate.
Submit me
--
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 andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.