第7章 深入理解Audio系统
最后更新于:2022-04-02 05:51:09
#### 本章主要内容
- 详细分析AudioTrack。
- 详细分析AudioFlinger。
- 详细分析AudioPolicyService。
#### 本章涉及的源代码文件名及位置
下面是本章分析的源码文件名及其位置。
- AudioTrack.java
`framework/base/media/java/com/android/media/AudioTrack.java`
- android_media_track.cpp
`framework/base/core/jni/android_media_track.cpp`
- MemoryHeapBase
`framework/base/libs/binder/MemoryHeapBase.cpp`
- MemoryBase.h
`framework/base/include/binder/MemoryBase.h`
- AudioTrack.cpp
`framework/base/libmedia/AudioTrack.cpp`
- audio_track_cblk_t声明
`framework/base/include/private/media/AudioTrackShared.h`
- audio_track_cblk_t定义
`framework/base/media/libmedia/AudioTrack.cpp`
- Main_MediaServer.cpp
`framework/base/media/mediaserver/Main_MediaServer.cpp`
- AudioFlinger.cpp
`framework/base/libs/audioFlinger/AudioFlinger.cpp`
- AudioHardwareInterface.h
`hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h`
- AudioMixer.cpp
`framework/base/libs/audioflinger/AudioMixer.cpp`
- AudioSystem.h
`framework/base/include/media/AudioSystem.h`
- AudioSystem.cpp
`framework/base/media/libmedia/AudioSystem.cpp`
- AudioPolicyInterface.h
`hardware/libhardware_legacy/include/hardware_legacy`
- AudioPolicyManagerBase.cpp
`framework/base/libs/audioflinger/AudioPolicyManagerBase.cpp`
- AudioService.java
`framework/base/media/java/com/android/media/AudioService.java`
- Android_media_AudioSystem.cpp
`framework/base/core/Jni/Android_media_AudioSystem.cpp`
';