Index: talk/media/webrtc/webrtcvoiceengine.cc |
diff --git a/talk/media/webrtc/webrtcvoiceengine.cc b/talk/media/webrtc/webrtcvoiceengine.cc |
index 6a448c83116a8229ad21cd13b6ac2ff04276b050..e288e7040fac5b450d307986c37c389b2d279c5b 100644 |
--- a/talk/media/webrtc/webrtcvoiceengine.cc |
+++ b/talk/media/webrtc/webrtcvoiceengine.cc |
@@ -1743,6 +1743,24 @@ WebRtcVoiceMediaChannel::~WebRtcVoiceMediaChannel() { |
DeleteChannel(voe_channel()); |
} |
+bool WebRtcVoiceMediaChannel::SetSendParameters( |
+ const AudioSendParameters& params) { |
+ // TODO(pthatcher): Refactor this to be more clean now that we have |
+ // all the information at once. |
+ return (SetSendCodecs(params.codecs) && |
+ SetSendRtpHeaderExtensions(params.extensions) && |
+ SetMaxSendBandwidth(params.max_bandwidth_bps) && |
+ SetOptions(params.options)); |
+} |
+ |
+bool WebRtcVoiceMediaChannel::SetRecvParameters( |
+ const AudioRecvParameters& params) { |
+ // TODO(pthatcher): Refactor this to be more clean now that we have |
+ // all the information at once. |
+ return (SetRecvCodecs(params.codecs) && |
+ SetRecvRtpHeaderExtensions(params.extensions)); |
+} |
+ |
bool WebRtcVoiceMediaChannel::SetOptions(const AudioOptions& options) { |
LOG(LS_INFO) << "Setting voice channel options: " |
<< options.ToString(); |