Answering my question. The following values ββwere met: DEFAULT, MIC, CAMCORDER, possibly others, as this is the only input device.
I tried to use a sampling rate of 48000 (works on Windows), and the creation of AudioRecord completed with:
ERROR / AudioRecord (1615): Failed to get audio input for recording source 1 ERROR / AudioRecord-JNI (1615): Error creating AudioRecord instance: initialization check failed. ERROR / AudioRecord-Java (1615): [android.media.AudioRecord] Error code -20 when initializing its own AudioRecord object.
To some extent misleading information, given that calling getMinBufferSize () with the same set of agruments does not return an error, as expected. I assumed that this is the actual sample rate for the device. Fixed the problem with setting to 44100 (guranteed).
USB audio input devices work on Android, Bean jelly at least. Hope this helps someone.
Industrial control freak
source share