diff options
author | Wei Jia <wjia@google.com> | 2015-04-23 14:06:42 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2015-04-23 16:08:06 -0700 |
commit | 99d1f78c9b16b5668e78c353373e0e7f4592cab9 (patch) | |
tree | 8970f2f018cc0829ee78c4ed5461c39c8f9a1775 /include | |
parent | 1ac91ed2c67245ea5052182212463d3f0afe8b5a (diff) | |
download | frameworks_av-99d1f78c9b16b5668e78c353373e0e7f4592cab9.zip frameworks_av-99d1f78c9b16b5668e78c353373e0e7f4592cab9.tar.gz frameworks_av-99d1f78c9b16b5668e78c353373e0e7f4592cab9.tar.bz2 |
MediaSync: allow users to query play time for pending audio frames.
Bug: 19666434
Change-Id: I5cfd3e1a9b4f56aaa6482facd55a22ed1e7ed3e6
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MediaSync.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaSync.h b/include/media/stagefright/MediaSync.h index 8bb8c7f..8ad74a4 100644 --- a/include/media/stagefright/MediaSync.h +++ b/include/media/stagefright/MediaSync.h @@ -113,6 +113,9 @@ public: // MediaClock::getMediaTime() and MediaClock::getRealTimeFor(). sp<const MediaClock> getMediaClock(); + // Get the play time for pending audio frames in audio sink. + status_t getPlayTimeForPendingAudioFrames(int64_t *outTimeUs); + protected: virtual void onMessageReceived(const sp<AMessage> &msg); |