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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 unsigned short* fractionLost); | 354 unsigned short* fractionLost); |
355 int SendApplicationDefinedRTCPPacket(unsigned char subType, | 355 int SendApplicationDefinedRTCPPacket(unsigned char subType, |
356 unsigned int name, | 356 unsigned int name, |
357 const char* data, | 357 const char* data, |
358 unsigned short dataLengthInBytes); | 358 unsigned short dataLengthInBytes); |
359 int GetRTPStatistics(unsigned int& averageJitterMs, | 359 int GetRTPStatistics(unsigned int& averageJitterMs, |
360 unsigned int& maxJitterMs, | 360 unsigned int& maxJitterMs, |
361 unsigned int& discardedPackets); | 361 unsigned int& discardedPackets); |
362 int GetRemoteRTCPReportBlocks(std::vector<ReportBlock>* report_blocks); | 362 int GetRemoteRTCPReportBlocks(std::vector<ReportBlock>* report_blocks); |
363 int GetRTPStatistics(CallStatistics& stats); | 363 int GetRTPStatistics(CallStatistics& stats); |
364 int SetREDStatus(bool enable, int redPayloadtype); | |
365 int GetREDStatus(bool& enabled, int& redPayloadtype); | |
366 int SetCodecFECStatus(bool enable); | 364 int SetCodecFECStatus(bool enable); |
367 bool GetCodecFECStatus(); | 365 bool GetCodecFECStatus(); |
368 void SetNACKStatus(bool enable, int maxNumberOfPackets); | 366 void SetNACKStatus(bool enable, int maxNumberOfPackets); |
369 | 367 |
370 // From AudioPacketizationCallback in the ACM | 368 // From AudioPacketizationCallback in the ACM |
371 int32_t SendData(FrameType frameType, | 369 int32_t SendData(FrameType frameType, |
372 uint8_t payloadType, | 370 uint8_t payloadType, |
373 uint32_t timeStamp, | 371 uint32_t timeStamp, |
374 const uint8_t* payloadData, | 372 const uint8_t* payloadData, |
375 size_t payloadSize, | 373 size_t payloadSize, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 const RTPHeader& header); | 458 const RTPHeader& header); |
461 bool IsPacketInOrder(const RTPHeader& header) const; | 459 bool IsPacketInOrder(const RTPHeader& header) const; |
462 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; | 460 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; |
463 int ResendPackets(const uint16_t* sequence_numbers, int length); | 461 int ResendPackets(const uint16_t* sequence_numbers, int length); |
464 int32_t MixOrReplaceAudioWithFile(int mixingFrequency); | 462 int32_t MixOrReplaceAudioWithFile(int mixingFrequency); |
465 int32_t MixAudioWithFile(AudioFrame& audioFrame, int mixingFrequency); | 463 int32_t MixAudioWithFile(AudioFrame& audioFrame, int mixingFrequency); |
466 void UpdatePlayoutTimestamp(bool rtcp); | 464 void UpdatePlayoutTimestamp(bool rtcp); |
467 void UpdatePacketDelay(uint32_t timestamp, uint16_t sequenceNumber); | 465 void UpdatePacketDelay(uint32_t timestamp, uint16_t sequenceNumber); |
468 void RegisterReceiveCodecsToRTPModule(); | 466 void RegisterReceiveCodecsToRTPModule(); |
469 | 467 |
470 int SetRedPayloadType(int red_payload_type); | |
471 int SetSendRtpHeaderExtension(bool enable, | 468 int SetSendRtpHeaderExtension(bool enable, |
472 RTPExtensionType type, | 469 RTPExtensionType type, |
473 unsigned char id); | 470 unsigned char id); |
474 | 471 |
475 int32_t GetPlayoutFrequency(); | 472 int32_t GetPlayoutFrequency(); |
476 int64_t GetRTT(bool allow_associate_channel) const; | 473 int64_t GetRTT(bool allow_associate_channel) const; |
477 | 474 |
478 rtc::CriticalSection _fileCritSect; | 475 rtc::CriticalSection _fileCritSect; |
479 rtc::CriticalSection _callbackCritSect; | 476 rtc::CriticalSection _callbackCritSect; |
480 rtc::CriticalSection volume_settings_critsect_; | 477 rtc::CriticalSection volume_settings_critsect_; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 PacketRouter* packet_router_ = nullptr; | 580 PacketRouter* packet_router_ = nullptr; |
584 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; | 581 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; |
585 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; | 582 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; |
586 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; | 583 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; |
587 }; | 584 }; |
588 | 585 |
589 } // namespace voe | 586 } // namespace voe |
590 } // namespace webrtc | 587 } // namespace webrtc |
591 | 588 |
592 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 589 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
OLD | NEW |