summaryrefslogtreecommitdiffstats
path: root/include/private
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-08-29 17:12:45 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-29 17:12:45 -0700
commitf557872b594d15599bdb65efd91eb5adeb1d0840 (patch)
tree8df16a0c49bac71163035d11562e06bcc12a2490 /include/private
parent30c296c153447f5c2bb5251928bf4d3c4e28e552 (diff)
parent908d3c09ca7f2ccb280aa5dc8d876099ff9a9d0f (diff)
downloadframeworks_av-f557872b594d15599bdb65efd91eb5adeb1d0840.zip
frameworks_av-f557872b594d15599bdb65efd91eb5adeb1d0840.tar.gz
frameworks_av-f557872b594d15599bdb65efd91eb5adeb1d0840.tar.bz2
am 908d3c09: am 51ec03c2: Merge "Implement Track::getTimestamp()" into klp-dev
* commit '908d3c09ca7f2ccb280aa5dc8d876099ff9a9d0f': Implement Track::getTimestamp()
Diffstat (limited to 'include/private')
-rw-r--r--include/private/media/AudioTrackShared.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h
index ad00c6d..d6e7ac4 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 {