From cbeebb194b374a5eea2f1c6ed6298c09a937c4cb Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 16 Feb 2011 12:28:26 -0800 Subject: A/V synchronization at the beginning of a recording session o do not use edts/elst boxes since these optional boxes are ignored o manipulate the first video/audio frame duration to make sure that the rest of the audio/video is in sync (ideally, we should only manipulate the vidoe frame duration, not the audio) o reduce the initial audio mute/suppression period, which is used to eliminate the "recording" sound. bug - 3405882 and 3362703 Change-Id: Ib0acfb4f3843b365157288951dc122b006299c18 --- include/media/stagefright/AudioSource.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/media') diff --git a/include/media/stagefright/AudioSource.h b/include/media/stagefright/AudioSource.h index b35a6e6..9e6f0e2 100644 --- a/include/media/stagefright/AudioSource.h +++ b/include/media/stagefright/AudioSource.h @@ -59,12 +59,12 @@ private: // After the initial mute, we raise the volume linearly // over kAutoRampDurationUs. - kAutoRampDurationUs = 700000, + kAutoRampDurationUs = 300000, // This is the initial mute duration to suppress // the video recording signal tone - kAutoRampStartUs = 1000000, - }; + kAutoRampStartUs = 0, + }; Mutex mLock; Condition mFrameAvailableCondition; -- cgit v1.1