diff options
| author | Haynes Mathew George <hgeorge@codeaurora.org> | 2014-01-08 13:59:53 -0800 | 
|---|---|---|
| committer | Eric Laurent <elaurent@google.com> | 2014-03-06 18:00:39 -0800 | 
| commit | 2048c2292c0466b184fb8f67c91f4d0ab9f5c3f3 (patch) | |
| tree | 126fcbfff298dd8e0f8ddb834c93c8850b8654ac /include/media | |
| parent | a11111f9135c98cf4247bbd1a61d7df3053e549e (diff) | |
| download | frameworks_av-2048c2292c0466b184fb8f67c91f4d0ab9f5c3f3.zip frameworks_av-2048c2292c0466b184fb8f67c91f4d0ab9f5c3f3.tar.gz frameworks_av-2048c2292c0466b184fb8f67c91f4d0ab9f5c3f3.tar.bz2  | |
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
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/AudioTrack.h | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index f6646ab..4736369 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -740,6 +740,7 @@ protected:      bool                    mInUnderrun;            // whether track is currently in underrun state      String8                 mName;                  // server's name for this IAudioTrack +    uint32_t                mPausedPosition;  private:      class DeathNotifier : public IBinder::DeathRecipient {  | 
