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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 52 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
53 channel()->SetNACKStatus(enable, max_packets); | 53 channel()->SetNACKStatus(enable, max_packets); |
54 } | 54 } |
55 | 55 |
56 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { | 56 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { |
57 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 57 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
58 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); | 58 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); |
59 RTC_DCHECK_EQ(0, error); | 59 RTC_DCHECK_EQ(0, error); |
60 } | 60 } |
61 | 61 |
62 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) { | |
63 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | |
64 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id); | |
65 RTC_DCHECK_EQ(0, error); | |
66 } | |
67 | |
68 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { | 62 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { |
69 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 63 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
70 channel()->EnableSendTransportSequenceNumber(id); | 64 channel()->EnableSendTransportSequenceNumber(id); |
71 } | 65 } |
72 | 66 |
73 void ChannelProxy::EnableReceiveTransportSequenceNumber(int id) { | |
74 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | |
75 channel()->EnableReceiveTransportSequenceNumber(id); | |
76 } | |
77 | |
78 void ChannelProxy::RegisterSenderCongestionControlObjects( | 67 void ChannelProxy::RegisterSenderCongestionControlObjects( |
79 RtpPacketSender* rtp_packet_sender, | 68 RtpPacketSender* rtp_packet_sender, |
80 TransportFeedbackObserver* transport_feedback_observer, | 69 TransportFeedbackObserver* transport_feedback_observer, |
81 PacketRouter* packet_router, | 70 PacketRouter* packet_router, |
82 RtcpBandwidthObserver* bandwidth_observer) { | 71 RtcpBandwidthObserver* bandwidth_observer) { |
83 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 72 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
84 channel()->RegisterSenderCongestionControlObjects( | 73 channel()->RegisterSenderCongestionControlObjects( |
85 rtp_packet_sender, transport_feedback_observer, packet_router, | 74 rtp_packet_sender, transport_feedback_observer, packet_router, |
86 bandwidth_observer); | 75 bandwidth_observer); |
87 } | 76 } |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 return channel()->SetSendCNPayloadType(type, frequency) == 0; | 356 return channel()->SetSendCNPayloadType(type, frequency) == 0; |
368 } | 357 } |
369 | 358 |
370 Channel* ChannelProxy::channel() const { | 359 Channel* ChannelProxy::channel() const { |
371 RTC_DCHECK(channel_owner_.channel()); | 360 RTC_DCHECK(channel_owner_.channel()); |
372 return channel_owner_.channel(); | 361 return channel_owner_.channel(); |
373 } | 362 } |
374 | 363 |
375 } // namespace voe | 364 } // namespace voe |
376 } // namespace webrtc | 365 } // namespace webrtc |
OLD | NEW |