commit | a134b006bc5714b6c8dcfbe5900a3ee029aa1044 | [log] [tgz] |
---|---|---|
author | Kevin Rocard <krocard@google.com> | Thu Feb 07 18:05:31 2019 -0800 |
committer | Kevin Rocard <krocard@google.com> | Fri Feb 08 17:31:07 2019 -0800 |
tree | 8961e932f8db72b1f24a7f7d83ca91ced0369975 | |
parent | 2ec0674146dc0a9d885a18067a7a5c84786b59ad [diff] |
Audioflinger intercept track retry on buffer end Track::interceptBuffer failed to write all the audio if the source BP could not returned the requested buffer size. This is actually normal when the source circular buffer wraps around. Handle it by retrying if the first buffer is too small. Test: adb shell audiorecorder --target /data/file.raw Bug: 111453086 Change-Id: I42a7962449a0f075909a29f5f8f5ba82ca1d0085