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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 int error = channel()->SetSendAbsoluteSenderTimeStatus(enable, id); | 45 int error = channel()->SetSendAbsoluteSenderTimeStatus(enable, id); |
46 RTC_DCHECK_EQ(0, error); | 46 RTC_DCHECK_EQ(0, error); |
47 } | 47 } |
48 | 48 |
49 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { | 49 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { |
50 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 50 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
51 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); | 51 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); |
52 RTC_DCHECK_EQ(0, error); | 52 RTC_DCHECK_EQ(0, error); |
53 } | 53 } |
54 | 54 |
| 55 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { |
| 56 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 57 channel()->EnableSendTransportSequenceNumber(id); |
| 58 } |
| 59 |
55 void ChannelProxy::SetReceiveAbsoluteSenderTimeStatus(bool enable, int id) { | 60 void ChannelProxy::SetReceiveAbsoluteSenderTimeStatus(bool enable, int id) { |
56 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 61 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
57 int error = channel()->SetReceiveAbsoluteSenderTimeStatus(enable, id); | 62 int error = channel()->SetReceiveAbsoluteSenderTimeStatus(enable, id); |
58 RTC_DCHECK_EQ(0, error); | 63 RTC_DCHECK_EQ(0, error); |
59 } | 64 } |
60 | 65 |
61 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) { | 66 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) { |
62 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 67 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
63 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id); | 68 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id); |
64 RTC_DCHECK_EQ(0, error); | 69 RTC_DCHECK_EQ(0, error); |
65 } | 70 } |
66 | 71 |
| 72 void ChannelProxy::SetCongestionControlObjects( |
| 73 RtpPacketSender* rtp_packet_sender, |
| 74 TransportFeedbackObserver* transport_feedback_observer, |
| 75 PacketRouter* packet_router) { |
| 76 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 77 channel()->SetCongestionControlObjects( |
| 78 rtp_packet_sender, transport_feedback_observer, packet_router); |
| 79 } |
| 80 |
67 CallStatistics ChannelProxy::GetRTCPStatistics() const { | 81 CallStatistics ChannelProxy::GetRTCPStatistics() const { |
68 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 82 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
69 CallStatistics stats = {0}; | 83 CallStatistics stats = {0}; |
70 int error = channel()->GetRTPStatistics(stats); | 84 int error = channel()->GetRTPStatistics(stats); |
71 RTC_DCHECK_EQ(0, error); | 85 RTC_DCHECK_EQ(0, error); |
72 return stats; | 86 return stats; |
73 } | 87 } |
74 | 88 |
75 std::vector<ReportBlock> ChannelProxy::GetRemoteRTCPReportBlocks() const { | 89 std::vector<ReportBlock> ChannelProxy::GetRemoteRTCPReportBlocks() const { |
76 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 90 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 uint32_t duration_ms) { | 131 uint32_t duration_ms) { |
118 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 132 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
119 return | 133 return |
120 channel()->SendTelephoneEventOutband(event, duration_ms, 10, false) == 0; | 134 channel()->SendTelephoneEventOutband(event, duration_ms, 10, false) == 0; |
121 } | 135 } |
122 | 136 |
123 Channel* ChannelProxy::channel() const { | 137 Channel* ChannelProxy::channel() const { |
124 RTC_DCHECK(channel_owner_.channel()); | 138 RTC_DCHECK(channel_owner_.channel()); |
125 return channel_owner_.channel(); | 139 return channel_owner_.channel(); |
126 } | 140 } |
| 141 |
127 } // namespace voe | 142 } // namespace voe |
128 } // namespace webrtc | 143 } // namespace webrtc |
OLD | NEW |