commit | 4433169a64eddb8598735bd950491ed35ad9c5f8 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Mon Dec 05 09:47:19 2011 -0800 |
committer | Eric Laurent <elaurent@google.com> | Mon Dec 05 10:40:18 2011 -0800 |
tree | 0af1c5609ff4233ecfad3820200aac096b2ffeeb | |
parent | e35581ad5ad635f9dcfe4ab6a432c48b46b782cd [diff] |
audioflinger: fix audio skipping over A2DP The maximum sleep time allowed in the mixer thread when audio tracks are enabled but not ready for mixing is derived from the latency reported by the output stream. This does not work for A2DP where the latency also reflects encoding, decoding and transfer time. Modified activeSleepTimeUs() to take A2DP case into account. Issue 5682206. Change-Id: I3784ac01fb6f836b5a6ce6f764fb15347586de35