这是官方提供的音频模块架构图:https://source.android.google.cn/devices/audio ,属于C/S架构,主要包含几部分:
APP -》Java Framework -》JNI -》C++ Framework::libaudioclient 《= Binder IPC =》C++ Framework::auidoserver -》HAL -》HW Driver(kernel)
Media Server: The media server contains audio services, which are the actual code that interacts with your HAL implementations. 代码主要位于 ./frameworks/av/services/audioflinger 目录
Client :以下这些应用层常用的功能,都属于audio client的具体实现。
1. AudioRecord: receiving data from an audio input device such as a microphone.
2. AudioTrack: <