diff options
author | James Dong <jdong@google.com> | 2010-07-29 18:06:08 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-07-30 14:35:37 -0700 |
commit | 46292fb347d72a314d985e34e5e3743d846cb9b6 (patch) | |
tree | a949b30281f740309113e150132aa4eae6bd10e4 /include | |
parent | 5caff27f4683d5e444f327a5beec15d9b8c7f252 (diff) | |
download | frameworks_av-46292fb347d72a314d985e34e5e3743d846cb9b6.zip frameworks_av-46292fb347d72a314d985e34e5e3743d846cb9b6.tar.gz frameworks_av-46292fb347d72a314d985e34e5e3743d846cb9b6.tar.bz2 |
Add lost frame handling in AudioSource
- Also collect stats on lost audio frames instead of time spent on reading
Change-Id: I6380b143e4fbdcd894491aaae523331e90d0f04f
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/AudioSource.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/media/stagefright/AudioSource.h b/include/media/stagefright/AudioSource.h index 628200d..f1d45d2 100644 --- a/include/media/stagefright/AudioSource.h +++ b/include/media/stagefright/AudioSource.h @@ -57,11 +57,10 @@ private: bool mCollectStats; bool mTrackMaxAmplitude; - int64_t mTotalReadTimeUs; - int64_t mTotalReadBytes; - int64_t mTotalReads; int64_t mStartTimeUs; int16_t mMaxAmplitude; + int64_t mPrevSampleTimeUs; + int64_t mNumLostFrames; MediaBufferGroup *mGroup; |