Af2Microphone.names - affluxis/csjava GitHub Wiki

Usage
Af2Microphone.names

Description
Read-only class property; retrieves an array of strings reflecting the names of all available sound capture devices without displaying the Privacy Settings panel. This array behaves the same as any other Java array, implicitly providing the zero-based index of each sound capture device and the number of sound capture devices on the system (by means of Af2Microphone.names.length). Calling Af2Microphone.names requires an extensive examination of the hardware, and it may take several seconds to build the array. In most cases, you can just use the default microphone.

Example
The following code returns information on the array of audio devices.

allMicNames = Af2Microphone.names;
for(i = 0; i < allMicNames.length; i++) {
  Log.d("affluxis", allMicNames[i]);
}

For example, the following information could be displayed:

Crystal SoundFusion(tm)
USB Audio Device

See also
Af2Microphone.name