diff options
author | Sultanxda <sultanxda@gmail.com> | 2015-11-20 13:10:13 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2015-11-27 05:12:42 -0800 |
commit | 5183735fba449d7a4e305384d78a6c21d406b3bf (patch) | |
tree | d991ee97e7337453ad940da182298cc5e46040a6 | |
parent | d51e9d6d1f59dd3bd0916175b6502af74c9dfe10 (diff) | |
download | frameworks_av-5183735fba449d7a4e305384d78a6c21d406b3bf.zip frameworks_av-5183735fba449d7a4e305384d78a6c21d406b3bf.tar.gz frameworks_av-5183735fba449d7a4e305384d78a6c21d406b3bf.tar.bz2 |
Revert "adjust audio timestamp to account for AudioRecord latency"
Throws audio and video out of sync for video recordings.
This reverts commit fa4303dcbeac79452f35c078c8008f5c2e7622b7.
Change-Id: I6207cbb8d2dffec9743b734b8180406506c0d041
-rw-r--r-- | media/libstagefright/AudioSource.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/media/libstagefright/AudioSource.cpp b/media/libstagefright/AudioSource.cpp index db08476..78fc3b8 100644 --- a/media/libstagefright/AudioSource.cpp +++ b/media/libstagefright/AudioSource.cpp @@ -304,10 +304,6 @@ void AudioSource::signalBufferReturned(MediaBuffer *buffer) { status_t AudioSource::dataCallback(const AudioRecord::Buffer& audioBuffer) { int64_t timeUs = systemTime() / 1000ll; - // Estimate the real sampling time of the 1st sample in this buffer - // from AudioRecord's latency. (Apply this adjustment first so that - // the start time logic is not affected.) - timeUs -= mRecord->latency() * 1000LL; ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); Mutex::Autolock autoLock(mLock); |