http://blog.csdn.net/ameyume/article/details/7634424
The definition of audio device is in the framework and is divided into the C + + layer and Java layer definition. The Java layer definition is not visible to third-party applications, which is not available through the standard API.
definition of audio device in 1.c++
The definition of the audio device is in the AudioSystem.h file in the Frameworks/base/include/media directory 2.3.7 and before.
Ics4.0 and later moved to the AudioSystemLegacy.h file in the Hardware/libhardware_legacy/include/hardware_legacy directory,
However, this definition has been deprecated in 4.2 and requires the use of definitions in/system/core/include/system/audio.h. The audio devices in audio.h are defined as follows:
http://blog.csdn.net/kangear/article/details/44939429
Definition of Android audio device