diff options
author | Glenn Kasten <gkasten@google.com> | 2013-08-23 13:53:56 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-08-29 09:59:31 -0700 |
commit | bd096fd9d8e5fc0e62f98807f4818a06f70d0812 (patch) | |
tree | 8ff27bce9f34e4bdd0f8e233494a24efef475a7d /include | |
parent | 573d80a8f463f648a515fc0975bf83951b272993 (diff) | |
download | frameworks_av-bd096fd9d8e5fc0e62f98807f4818a06f70d0812.zip frameworks_av-bd096fd9d8e5fc0e62f98807f4818a06f70d0812.tar.gz frameworks_av-bd096fd9d8e5fc0e62f98807f4818a06f70d0812.tar.bz2 |
Implement Track::getTimestamp()
using a new timestamp latch in PlaybackThread, and
AudioTrackServerProxy::framesReleased() which returns mServer.
Change-Id: I1ebfba968c773faaab95648c272fd3ebd74718d6
Diffstat (limited to 'include')
-rw-r--r-- | include/private/media/AudioTrackShared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h index 1379379..ad7409d 100644 --- a/include/private/media/AudioTrackShared.h +++ b/include/private/media/AudioTrackShared.h @@ -422,6 +422,9 @@ public: // Return the total number of frames which AudioFlinger desired but were unavailable, // and thus which resulted in an underrun. virtual uint32_t getUnderrunFrames() const { return mCblk->u.mStreaming.mUnderrunFrames; } + + // Return the total number of frames that AudioFlinger has obtained and released + virtual size_t framesReleased() const { return mCblk->mServer; } }; class StaticAudioTrackServerProxy : public AudioTrackServerProxy { |