简单描述android audio HAL层的调用流程,好记性不如好笔头!
1.Enable device before playback:
AudioHardware::setParameters
2.Start playback:
AudioHardware::openOutputStream
3.Playbacking...:
AudioStreamOutALSA::write
.
.
.
AudioStreamOutALSA::write
4.Disable device after playback:
AudioHardware::setParameters
5.Stop playback:
AudioHardware::closeOutputStream
kernel driver的调用流程及硬件控制时需以后再补吧,先做个小记!
阅读(1927) | 评论(0) | 转发(0) |