diff options
author | wu@webrtc.org <wu@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-05-19 17:39:11 +0000 |
---|---|---|
committer | wu@webrtc.org <wu@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-05-19 17:39:11 +0000 |
commit | 22f69bd27abc89979460df6d01de8685cb058aab (patch) | |
tree | 0b83aca27fe6380e32050353b2fa4f3605ba9aa9 /voice_engine/voe_base_impl.h | |
parent | 5359a2e38f6ed614249150ecb522ae5f7e041da2 (diff) | |
download | webrtc-22f69bd27abc89979460df6d01de8685cb058aab.tar.gz |
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/webrtc@6189 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/voe_base_impl.h')
-rw-r--r-- | voice_engine/voe_base_impl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/voice_engine/voe_base_impl.h b/voice_engine/voe_base_impl.h index 96dc225a..fbcb4dd8 100644 --- a/voice_engine/voe_base_impl.h +++ b/voice_engine/voe_base_impl.h @@ -79,7 +79,9 @@ public: uint8_t nChannels, uint32_t samplesPerSec, void* audioSamples, - uint32_t& nSamplesOut); + uint32_t& nSamplesOut, + uint32_t* rtp_timestamp, + int64_t* ntp_time_ms); virtual int OnDataAvailable(const int voe_channels[], int number_of_voe_channels, @@ -102,7 +104,9 @@ public: virtual void PullRenderData(int bits_per_sample, int sample_rate, int number_of_channels, int number_of_frames, - void* audio_data); + void* audio_data, + uint32_t* rtp_timestamp, + int64_t* ntp_time_ms); // AudioDeviceObserver virtual void OnErrorIsReported(ErrorCode error); @@ -138,7 +142,9 @@ private: void GetPlayoutData(int sample_rate, int number_of_channels, int number_of_frames, bool feed_data_to_apm, - void* audio_data); + void* audio_data, + uint32_t* rtp_timestamp, + int64_t* ntp_time_ms); int32_t AddBuildInfo(char* str) const; int32_t AddVoEVersion(char* str) const; |