OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 // From OverheadObserver in the RTP/RTCP module | 377 // From OverheadObserver in the RTP/RTCP module |
378 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; | 378 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; |
379 | 379 |
380 // Note: The existence of this function alongside OnUplinkPacketLossRate is | 380 // Note: The existence of this function alongside OnUplinkPacketLossRate is |
381 // a compromise. We want the encoder to be agnostic of the PLR source, but | 381 // a compromise. We want the encoder to be agnostic of the PLR source, but |
382 // we also don't want it to receive conflicting information from TWCC and | 382 // we also don't want it to receive conflicting information from TWCC and |
383 // from RTCP-XR. | 383 // from RTCP-XR. |
384 void OnTwccBasedUplinkPacketLossRate( | 384 void OnTwccBasedUplinkPacketLossRate( |
385 const rtc::Optional<float>& packet_loss_rate); | 385 const rtc::Optional<float>& packet_loss_rate); |
386 | 386 |
| 387 void OnRecoverableUplinkPacketLossRate( |
| 388 const rtc::Optional<float>& recoverable_packet_loss_rate); |
| 389 |
387 protected: | 390 protected: |
388 void OnUplinkPacketLossRate(float packet_loss_rate); | 391 void OnUplinkPacketLossRate(float packet_loss_rate); |
389 | 392 |
390 private: | 393 private: |
391 bool InputMute() const; | 394 bool InputMute() const; |
392 bool OnRtpPacketWithHeader(const uint8_t* received_packet, | 395 bool OnRtpPacketWithHeader(const uint8_t* received_packet, |
393 size_t length, | 396 size_t length, |
394 RTPHeader *header); | 397 RTPHeader *header); |
395 bool ReceivePacket(const uint8_t* packet, | 398 bool ReceivePacket(const uint8_t* packet, |
396 size_t packet_length, | 399 size_t packet_length, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 516 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
514 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 517 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
515 | 518 |
516 const bool use_twcc_plr_for_ana_; | 519 const bool use_twcc_plr_for_ana_; |
517 }; | 520 }; |
518 | 521 |
519 } // namespace voe | 522 } // namespace voe |
520 } // namespace webrtc | 523 } // namespace webrtc |
521 | 524 |
522 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 525 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
OLD | NEW |