summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-05-14 15:55:48 -0700
committerAndreas Huber <andih@google.com>2012-05-14 15:55:48 -0700
commite4451a91a61a341014f5eff61db356156c3ecb37 (patch)
treee08424d79d2b0c341b51a180065faac801465463 /include
parent44f84ded62bffd5f04e0f5961e8304427a7b9f34 (diff)
downloadframeworks_av-e4451a91a61a341014f5eff61db356156c3ecb37.zip
frameworks_av-e4451a91a61a341014f5eff61db356156c3ecb37.tar.gz
frameworks_av-e4451a91a61a341014f5eff61db356156c3ecb37.tar.bz2
Smoothen audio "real" time by compensating with system_time()
for the delay since the last buffer submission to the audio sink. Change-Id: Ib1a8672f96ba8bbef07d23372f1076fbb1f0bdcc related-to-bug: 6479613
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/AudioPlayer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/AudioPlayer.h b/include/media/stagefright/AudioPlayer.h
index 9e8e4bb..a94b16e 100644
--- a/include/media/stagefright/AudioPlayer.h
+++ b/include/media/stagefright/AudioPlayer.h
@@ -80,6 +80,7 @@ private:
Mutex mLock;
int64_t mNumFramesPlayed;
+ int64_t mNumFramesPlayedSysTimeUs;
int64_t mPositionTimeMediaUs;
int64_t mPositionTimeRealUs;