summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2011-08-25 16:47:23 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2011-08-25 17:33:49 -0700
commitcd07594333cbe8b2c86c6609cce01a74d6cc33f8 (patch)
tree70b1b94cb811f564e8fe0c6ec348469adaae5f3c /include
parent539a735a82fefb1944aa6135df73dfe9f541566c (diff)
downloadframeworks_av-cd07594333cbe8b2c86c6609cce01a74d6cc33f8.zip
frameworks_av-cd07594333cbe8b2c86c6609cce01a74d6cc33f8.tar.gz
frameworks_av-cd07594333cbe8b2c86c6609cce01a74d6cc33f8.tar.bz2
Bug 4364249 Play position is 0 after flushing AudioTrack
AudioTrack::stop() is not synchronous, so a stop() followed by flush(), which is synchronous, will not always report a playhead position of 0 after being called. This CL adds a flag to mark a track as flushed, and report the correct playhead position in this state. Bug 5217011 has been created to address the real issue in the future, where flush could be made synchronous, to properly address bug 4364249. Change-Id: Icf989d41a6bcd5985bb87764c287f3edb7e26d12
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioTrack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index df30e8c..923518d 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -481,6 +481,7 @@ private:
bool mMarkerReached;
uint32_t mNewPosition;
uint32_t mUpdatePeriod;
+ bool mFlushed; // FIXME will be made obsolete by making flush() synchronous
uint32_t mFlags;
int mSessionId;
int mAuxEffectId;