Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1056)

Unified Diff: webrtc/voice_engine/channel_proxy.cc

Issue 2397573006: Using AudioOption to enable audio network adaptor. (Closed)
Patch Set: fixing some problems Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/channel_proxy.cc
diff --git a/webrtc/voice_engine/channel_proxy.cc b/webrtc/voice_engine/channel_proxy.cc
index fc22180566ccba2948cfa9e093ed58dcc6fcb185..f7ca9ad9e4f3aeb7c635e046cf780b334618820b 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -214,6 +214,23 @@ void ChannelProxy::SetRtcEventLog(RtcEventLog* event_log) {
channel()->SetRtcEventLog(event_log);
}
+bool ChannelProxy::EnableAudioNetworkAdaptor(const std::string& config_string) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ return channel()->EnableAudioNetworkAdaptor(config_string);
the sun 2016/10/25 09:25:46 AFAICT this call cannot fail (that would mean new(
+}
+
+void ChannelProxy::DisableAudioNetworkAdaptor() {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ channel()->DisableAudioNetworkAdaptor();
+}
+
+void ChannelProxy::SetReceiverFrameLengthRange(int min_frame_length_ms,
+ int max_frame_length_ms) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ channel()->SetReceiverFrameLengthRange(min_frame_length_ms,
+ max_frame_length_ms);
+}
+
Channel* ChannelProxy::channel() const {
RTC_DCHECK(channel_owner_.channel());
return channel_owner_.channel();
« webrtc/media/engine/webrtcvoiceengine.cc ('K') | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698