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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type) { | 139 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type) { |
140 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 140 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
141 return channel()->SetSendTelephoneEventPayloadType(payload_type) == 0; | 141 return channel()->SetSendTelephoneEventPayloadType(payload_type) == 0; |
142 } | 142 } |
143 | 143 |
144 bool ChannelProxy::SendTelephoneEventOutband(int event, int duration_ms) { | 144 bool ChannelProxy::SendTelephoneEventOutband(int event, int duration_ms) { |
145 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 145 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
146 return channel()->SendTelephoneEventOutband(event, duration_ms) == 0; | 146 return channel()->SendTelephoneEventOutband(event, duration_ms) == 0; |
147 } | 147 } |
148 | 148 |
149 void ChannelProxy::SetBitrate(int bitrate_bps) { | 149 void ChannelProxy::SetBitrate(int bitrate_bps, int64_t probing_interval_ms) { |
150 // May be called on different threads and needs to be handled by the channel. | 150 // May be called on different threads and needs to be handled by the channel. |
151 channel()->SetBitRate(bitrate_bps); | 151 channel()->SetBitRate(bitrate_bps, probing_interval_ms); |
152 } | 152 } |
153 | 153 |
154 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) { | 154 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) { |
155 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 155 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
156 channel()->SetSink(std::move(sink)); | 156 channel()->SetSink(std::move(sink)); |
157 } | 157 } |
158 | 158 |
159 void ChannelProxy::SetInputMute(bool muted) { | 159 void ChannelProxy::SetInputMute(bool muted) { |
160 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 160 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
161 int error = channel()->SetInputMute(muted); | 161 int error = channel()->SetInputMute(muted); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 channel()->set_associate_send_channel(ChannelOwner(nullptr)); | 247 channel()->set_associate_send_channel(ChannelOwner(nullptr)); |
248 } | 248 } |
249 | 249 |
250 Channel* ChannelProxy::channel() const { | 250 Channel* ChannelProxy::channel() const { |
251 RTC_DCHECK(channel_owner_.channel()); | 251 RTC_DCHECK(channel_owner_.channel()); |
252 return channel_owner_.channel(); | 252 return channel_owner_.channel(); |
253 } | 253 } |
254 | 254 |
255 } // namespace voe | 255 } // namespace voe |
256 } // namespace webrtc | 256 } // namespace webrtc |
OLD | NEW |