Add interface to propagate audio capture timestamp to the renderer.

BUG=3111
R=andrew@webrtc.org, turaj@webrtc.org, xians@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/12239004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6189 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
wu@webrtc.org
2014-05-19 17:39:11 +00:00
parent ebb467fdc8
commit cb711f77d2
15 changed files with 133 additions and 23 deletions

View File

@ -684,7 +684,10 @@ class AudioFrame {
AudioFrame& operator-=(const AudioFrame& rhs);
int id_;
// RTP timestamp of the first sample in the AudioFrame.
uint32_t timestamp_;
// NTP time of the estimated capture time in local timebase in milliseconds.
int64_t ntp_time_ms_;
int16_t data_[kMaxDataSizeSamples];
int samples_per_channel_;
int sample_rate_hz_;
@ -705,6 +708,7 @@ class AudioFrame {
inline AudioFrame::AudioFrame()
: id_(-1),
timestamp_(0),
ntp_time_ms_(0),
data_(),
samples_per_channel_(0),
sample_rate_hz_(0),