OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 306 matching lines...) Loading... |
317 bool ChannelProxy::SetCodecFECStatus(bool enable) { | 317 bool ChannelProxy::SetCodecFECStatus(bool enable) { |
318 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 318 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
319 return channel()->SetCodecFECStatus(enable) == 0; | 319 return channel()->SetCodecFECStatus(enable) == 0; |
320 } | 320 } |
321 | 321 |
322 bool ChannelProxy::SetOpusDtx(bool enable) { | 322 bool ChannelProxy::SetOpusDtx(bool enable) { |
323 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 323 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
324 return channel()->SetOpusDtx(enable) == 0; | 324 return channel()->SetOpusDtx(enable) == 0; |
325 } | 325 } |
326 | 326 |
| 327 bool ChannelProxy::SetOpusCbr(bool enable) { |
| 328 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 329 return channel()->SetOpusCbr(enable) == 0; |
| 330 } |
| 331 |
327 bool ChannelProxy::SetOpusMaxPlaybackRate(int frequency_hz) { | 332 bool ChannelProxy::SetOpusMaxPlaybackRate(int frequency_hz) { |
328 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 333 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
329 return channel()->SetOpusMaxPlaybackRate(frequency_hz) == 0; | 334 return channel()->SetOpusMaxPlaybackRate(frequency_hz) == 0; |
330 } | 335 } |
331 | 336 |
332 bool ChannelProxy::SetSendCodec(const CodecInst& codec_inst) { | 337 bool ChannelProxy::SetSendCodec(const CodecInst& codec_inst) { |
333 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 338 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
334 // Validation code copied from VoECodecImpl::SetSendCodec(). | 339 // Validation code copied from VoECodecImpl::SetSendCodec(). |
335 if ((STR_CASE_CMP(codec_inst.plname, "L16") == 0) && | 340 if ((STR_CASE_CMP(codec_inst.plname, "L16") == 0) && |
336 (codec_inst.pacsize >= 960)) { | 341 (codec_inst.pacsize >= 960)) { |
(...skipping 30 matching lines...) Loading... |
367 return channel()->SetSendCNPayloadType(type, frequency) == 0; | 372 return channel()->SetSendCNPayloadType(type, frequency) == 0; |
368 } | 373 } |
369 | 374 |
370 Channel* ChannelProxy::channel() const { | 375 Channel* ChannelProxy::channel() const { |
371 RTC_DCHECK(channel_owner_.channel()); | 376 RTC_DCHECK(channel_owner_.channel()); |
372 return channel_owner_.channel(); | 377 return channel_owner_.channel(); |
373 } | 378 } |
374 | 379 |
375 } // namespace voe | 380 } // namespace voe |
376 } // namespace webrtc | 381 } // namespace webrtc |
OLD | NEW |