commit | 10fd056c636861b9e45e3df8456c95a5ddbcc556 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Tue Aug 01 17:20:24 2017 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Wed Aug 02 08:49:39 2017 -0700 |
tree | 46757a1f84a0ace8c6527711654cee9df3d5887a | |
parent | 80d070f5dfc00c82218e341acb71d47c4cdc5d2c [diff] |
libaudiohal: When starting write, consider the stream buffer size When starting writing into a stream, use the bigger value from the requested bytes to write and the stream buffer size. This fixes a corner case when offload playback starts close to the end of the track, and then jumps to the middle. Bug: 63979005 Test: checked HAL logs for the repro case, confirmed that Loopback, PM, YT, Camcoder, still work, also over BT Change-Id: I924468619d2185fd679b739747c423babfb36ada