From c3ae937a95cbaf4afbe8aa006dc3db4c27f0ad44 Mon Sep 17 00:00:00 2001 From: James Dong Date: Thu, 29 Jul 2010 18:06:08 -0700 Subject: Add lost frame handling in AudioSource - Also collect stats on lost audio frames instead of time spent on reading Change-Id: I6380b143e4fbdcd894491aaae523331e90d0f04f --- include/media/stagefright/AudioSource.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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; -- cgit v1.1