Home:ALL Converter>AudioManager getDevices before API 23

AudioManager getDevices before API 23

Ask Time:2020-06-22T05:20:46         Author:EntangledLoops

Json Formatter

As of Android API 23, there exists AudioManager.getDevices() which can be used to obtain information about various hardware devices. I'm building an app that targets API 22 and need a way to figure out which hardware device supports the highest sample rate, number of channels, bit depth (etc.), and what those specific values are, but can't seem to figure out how to go about it. Can someone point me in the right direction?

Author:EntangledLoops,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/62504580/audiomanager-getdevices-before-api-23
yy