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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 rtc::CritScope lock(&packet_loss_tracker_cs_); | 264 rtc::CritScope lock(&packet_loss_tracker_cs_); |
265 packet_loss_tracker_.OnPacketAdded(seq_num, clock_->TimeInMilliseconds()); | 265 packet_loss_tracker_.OnPacketAdded(seq_num, clock_->TimeInMilliseconds()); |
266 } | 266 } |
267 } | 267 } |
268 | 268 |
269 void AudioSendStream::OnTransportFeedback( | 269 void AudioSendStream::OnTransportFeedback( |
270 const rtcp::TransportFeedback& feedback) { | 270 const rtcp::TransportFeedback& feedback) { |
271 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 271 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
272 rtc::CritScope lock(&packet_loss_tracker_cs_); | 272 rtc::CritScope lock(&packet_loss_tracker_cs_); |
273 packet_loss_tracker_.OnReceivedTransportFeedback(feedback); | 273 packet_loss_tracker_.OnReceivedTransportFeedback(feedback); |
274 channel_proxy_->OnTwccBasedUplinkPacketLossRate( | 274 channel_proxy_->OnTwccBasedUplinkPacketLossRate( |
elad.alon_webrtc.org
2017/03/16 19:01:37
Or we could have one function to pass both. I pref
| |
275 packet_loss_tracker_.GetPacketLossRate()); | 275 packet_loss_tracker_.GetPacketLossRate()); |
276 channel_proxy_->OnRecoverableUplinkPacketLossRate( | |
277 packet_loss_tracker_.GetRecoverablePacketLossRate()); | |
276 } | 278 } |
277 | 279 |
278 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { | 280 const webrtc::AudioSendStream::Config& AudioSendStream::config() const { |
279 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 281 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
280 return config_; | 282 return config_; |
281 } | 283 } |
282 | 284 |
283 void AudioSendStream::SetTransportOverhead(int transport_overhead_per_packet) { | 285 void AudioSendStream::SetTransportOverhead(int transport_overhead_per_packet) { |
284 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 286 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
285 congestion_controller_->SetTransportOverhead(transport_overhead_per_packet); | 287 congestion_controller_->SetTransportOverhead(transport_overhead_per_packet); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
401 LOG(LS_WARNING) << "SetVADStatus() failed."; | 403 LOG(LS_WARNING) << "SetVADStatus() failed."; |
402 return false; | 404 return false; |
403 } | 405 } |
404 } | 406 } |
405 } | 407 } |
406 return true; | 408 return true; |
407 } | 409 } |
408 | 410 |
409 } // namespace internal | 411 } // namespace internal |
410 } // namespace webrtc | 412 } // namespace webrtc |
OLD | NEW |