背景
音乐播放过程中,进行高CPU操作时,后台音乐播放出现卡滞。
分析
1、日志分析
日志中audioserver出现“AudioFlinger: underrun”的打印
05-27 15:35:00.186 396 777 W AudioFlinger: underrun, framesReady(0) < framesDesired(289), state: 6
05-27 15:35:07.035 396 777 W AudioFlinger: underrun, framesReady(0) < framesDesired(915), state: 6
05-27 15:35:07.123 396 777 W AudioFlinger: underrun, framesReady(0) < framesDesired(8), state: 6
05-27 15:35:07.242 396 777 W AudioFlinger: underrun, framesReady(0) < framesDesired(859), state: 6
05-27 15:35:31.634 396 777 W AudioFlinger: underrun, framesReady(0) < frames