commit | 2048c2292c0466b184fb8f67c91f4d0ab9f5c3f3 | [log] [tgz] |
---|---|---|
author | Haynes Mathew George <hgeorge@codeaurora.org> | Wed Jan 08 13:59:53 2014 -0800 |
committer | Eric Laurent <elaurent@google.com> | Thu Mar 06 18:00:39 2014 -0800 |
tree | 126fcbfff298dd8e0f8ddb834c93c8850b8654ac | |
parent | a11111f9135c98cf4247bbd1a61d7df3053e549e [diff] |
AudioTrack: When paused, return cached playback position An offload output can be re-used between two audio tracks having the same configuration. A timestamp query for a paused track while the other is running would return an incorrect time. To fix this, cache the playback position on a pause() and return this time when requested until the track is resumed. Bug: 12826612. Change-Id: Ia42b8b8fd2ba8993dfcc9abca72da48d71d78d74