summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-07-29 18:06:08 -0700
committerJames Dong <jdong@google.com>2010-07-30 14:35:37 -0700
commitc3ae937a95cbaf4afbe8aa006dc3db4c27f0ad44 (patch)
treeeab735659ca06317aeb547acc0699711dfd8c8b6 /include
parent31b5d5485f7336639d252da7ba979234dbd2f1e1 (diff)
downloadframeworks_base-c3ae937a95cbaf4afbe8aa006dc3db4c27f0ad44.zip
frameworks_base-c3ae937a95cbaf4afbe8aa006dc3db4c27f0ad44.tar.gz
frameworks_base-c3ae937a95cbaf4afbe8aa006dc3db4c27f0ad44.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.h5
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;