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