diff options
author | Glenn Kasten <gkasten@google.com> | 2014-11-21 01:54:55 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2014-11-21 01:54:55 +0000 |
commit | 53081f9795b62ca7fcf7e25d0d200a6d6530f98b (patch) | |
tree | 4ea46ff7f40e8346455974c93e55dd36087fc22c /include | |
parent | b4a909c0fee79b53b87634a06c5902dd1e6a8bc4 (diff) | |
parent | 56df21d760d70a106adfbc8417b6ea179d576e24 (diff) | |
download | frameworks_av-53081f9795b62ca7fcf7e25d0d200a6d6530f98b.zip frameworks_av-53081f9795b62ca7fcf7e25d0d200a6d6530f98b.tar.gz frameworks_av-53081f9795b62ca7fcf7e25d0d200a6d6530f98b.tar.bz2 |
am f8c2d166: am a7cf01da: Merge "Fix missing loop count for static tracks." into lmp-mr1-dev
automerge: 56df21d
* commit '56df21d760d70a106adfbc8417b6ea179d576e24':
Fix missing loop count for static tracks.
Diffstat (limited to 'include')
-rw-r--r-- | include/private/media/AudioTrackShared.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h index fa1b20a..31dff36 100644 --- a/include/private/media/AudioTrackShared.h +++ b/include/private/media/AudioTrackShared.h @@ -450,7 +450,14 @@ private: ssize_t pollPosition(); // poll for state queue update, and return current position StaticAudioTrackSingleStateQueue::Observer mObserver; size_t mPosition; // server's current play position in frames, relative to 0 - size_t mEnd; // cached value computed from mState, safe for asynchronous read + + size_t mFramesReadySafe; // Assuming size_t read/writes are atomic on 32 / 64 bit + // processors, this is a thread-safe version of + // mFramesReady. + int64_t mFramesReady; // The number of frames ready in the static buffer + // including loops. This is 64 bits since loop mode + // can cause a track to appear to have a large number + // of frames. INT64_MAX means an infinite loop. bool mFramesReadyIsCalledByMultipleThreads; StaticAudioTrackState mState; }; |