diff options
author | James Dong <jdong@google.com> | 2011-02-16 12:28:26 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-02-17 14:43:16 -0800 |
commit | cbeebb194b374a5eea2f1c6ed6298c09a937c4cb (patch) | |
tree | ad64e2af7f08f8a7184207f06e2294776ab53720 /include/media | |
parent | f653aa7e6e4d79dae191596551bfb5df4df6d6e5 (diff) | |
download | frameworks_base-cbeebb194b374a5eea2f1c6ed6298c09a937c4cb.zip frameworks_base-cbeebb194b374a5eea2f1c6ed6298c09a937c4cb.tar.gz frameworks_base-cbeebb194b374a5eea2f1c6ed6298c09a937c4cb.tar.bz2 |
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
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/AudioSource.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |