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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class VoiceEngineObserver; | 60 class VoiceEngineObserver; |
61 | 61 |
62 struct CallStatistics; | 62 struct CallStatistics; |
63 struct ReportBlock; | 63 struct ReportBlock; |
64 struct SenderInfo; | 64 struct SenderInfo; |
65 | 65 |
66 namespace voe { | 66 namespace voe { |
67 | 67 |
68 class OutputMixer; | 68 class OutputMixer; |
69 class RtcEventLogProxy; | 69 class RtcEventLogProxy; |
| 70 class RtcpRttStatsProxy; |
70 class RtpPacketSenderProxy; | 71 class RtpPacketSenderProxy; |
71 class Statistics; | 72 class Statistics; |
72 class StatisticsProxy; | 73 class StatisticsProxy; |
73 class TransportFeedbackProxy; | 74 class TransportFeedbackProxy; |
74 class TransmitMixer; | 75 class TransmitMixer; |
75 class TransportSequenceNumberProxy; | 76 class TransportSequenceNumberProxy; |
76 class VoERtcpObserver; | 77 class VoERtcpObserver; |
77 | 78 |
78 // Helper class to simplify locking scheme for members that are accessed from | 79 // Helper class to simplify locking scheme for members that are accessed from |
79 // multiple threads. | 80 // multiple threads. |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 rtc::CritScope lock(&assoc_send_channel_lock_); | 411 rtc::CritScope lock(&assoc_send_channel_lock_); |
411 associate_send_channel_ = channel; | 412 associate_send_channel_ = channel; |
412 } | 413 } |
413 | 414 |
414 // Disassociate a send channel if it was associated. | 415 // Disassociate a send channel if it was associated. |
415 void DisassociateSendChannel(int channel_id); | 416 void DisassociateSendChannel(int channel_id); |
416 | 417 |
417 // Set a RtcEventLog logging object. | 418 // Set a RtcEventLog logging object. |
418 void SetRtcEventLog(RtcEventLog* event_log); | 419 void SetRtcEventLog(RtcEventLog* event_log); |
419 | 420 |
| 421 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
| 422 |
420 protected: | 423 protected: |
421 void OnIncomingFractionLoss(int fraction_lost); | 424 void OnIncomingFractionLoss(int fraction_lost); |
422 | 425 |
423 private: | 426 private: |
424 bool ReceivePacket(const uint8_t* packet, | 427 bool ReceivePacket(const uint8_t* packet, |
425 size_t packet_length, | 428 size_t packet_length, |
426 const RTPHeader& header, | 429 const RTPHeader& header, |
427 bool in_order); | 430 bool in_order); |
428 bool HandleRtxPacket(const uint8_t* packet, | 431 bool HandleRtxPacket(const uint8_t* packet, |
429 size_t packet_length, | 432 size_t packet_length, |
(...skipping 15 matching lines...) Expand all Loading... |
445 | 448 |
446 rtc::CriticalSection _fileCritSect; | 449 rtc::CriticalSection _fileCritSect; |
447 rtc::CriticalSection _callbackCritSect; | 450 rtc::CriticalSection _callbackCritSect; |
448 rtc::CriticalSection volume_settings_critsect_; | 451 rtc::CriticalSection volume_settings_critsect_; |
449 uint32_t _instanceId; | 452 uint32_t _instanceId; |
450 int32_t _channelId; | 453 int32_t _channelId; |
451 | 454 |
452 ChannelState channel_state_; | 455 ChannelState channel_state_; |
453 | 456 |
454 std::unique_ptr<voe::RtcEventLogProxy> event_log_proxy_; | 457 std::unique_ptr<voe::RtcEventLogProxy> event_log_proxy_; |
| 458 std::unique_ptr<voe::RtcpRttStatsProxy> rtcp_rtt_stats_proxy_; |
455 | 459 |
456 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; | 460 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; |
457 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; | 461 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; |
458 std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; | 462 std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
459 std::unique_ptr<StatisticsProxy> statistics_proxy_; | 463 std::unique_ptr<StatisticsProxy> statistics_proxy_; |
460 std::unique_ptr<RtpReceiver> rtp_receiver_; | 464 std::unique_ptr<RtpReceiver> rtp_receiver_; |
461 TelephoneEventHandler* telephone_event_handler_; | 465 TelephoneEventHandler* telephone_event_handler_; |
462 std::unique_ptr<RtpRtcp> _rtpRtcpModule; | 466 std::unique_ptr<RtpRtcp> _rtpRtcpModule; |
463 std::unique_ptr<AudioCodingModule> audio_coding_; | 467 std::unique_ptr<AudioCodingModule> audio_coding_; |
464 acm2::CodecManager codec_manager_; | 468 acm2::CodecManager codec_manager_; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 550 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
547 | 551 |
548 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 552 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
549 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 553 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
550 }; | 554 }; |
551 | 555 |
552 } // namespace voe | 556 } // namespace voe |
553 } // namespace webrtc | 557 } // namespace webrtc |
554 | 558 |
555 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 559 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
OLD | NEW |