diff options
author | Andreas Huber <andih@google.com> | 2012-10-01 16:03:44 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-10-01 16:03:44 -0700 |
commit | af5dd7753e62353411cf0daf3b513c38818e9662 (patch) | |
tree | e935f45f925c4ce6d35d16764e2d40db69cc954a /include | |
parent | 0868deae404604b577892413c128d55a2bafc56e (diff) | |
download | frameworks_av-af5dd7753e62353411cf0daf3b513c38818e9662.zip frameworks_av-af5dd7753e62353411cf0daf3b513c38818e9662.tar.gz frameworks_av-af5dd7753e62353411cf0daf3b513c38818e9662.tar.bz2 |
ALooper::GetNowUs() now relies on systemTime instead of gettimeofday.
Change-Id: Ia31eb0940b02581327a8bf51af6df135f9ab6de3
related-to-bug: 7266324
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/AudioSource.h | 8 | ||||
-rw-r--r-- | include/media/stagefright/TimeSource.h | 2 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/media/stagefright/AudioSource.h b/include/media/stagefright/AudioSource.h index de7edf3..99f3c3b 100644 --- a/include/media/stagefright/AudioSource.h +++ b/include/media/stagefright/AudioSource.h @@ -53,12 +53,6 @@ struct AudioSource : public MediaSource, public MediaBufferObserver { status_t dataCallback(const AudioRecord::Buffer& buffer); virtual void signalBufferReturned(MediaBuffer *buffer); - // If useLooperTime == true, buffers will carry absolute timestamps - // as returned by ALooper::GetNowUs(), otherwise systemTime() is used - // and buffers contain timestamps relative to start time. - // The default is to _not_ use looper time. - void setUseLooperTime(bool useLooperTime); - protected: virtual ~AudioSource(); @@ -94,8 +88,6 @@ private: List<MediaBuffer * > mBuffersReceived; - bool mUseLooperTime; - void trackMaxAmplitude(int16_t *data, int nSamples); // This is used to raise the volume from mute to the diff --git a/include/media/stagefright/TimeSource.h b/include/media/stagefright/TimeSource.h index 443673d..8f11e14 100644 --- a/include/media/stagefright/TimeSource.h +++ b/include/media/stagefright/TimeSource.h @@ -41,8 +41,6 @@ public: virtual int64_t getRealTimeUs(); private: - static int64_t GetSystemTimeUs(); - int64_t mStartTimeUs; }; |