| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 uint32_t rate) override; | 371 uint32_t rate) override; |
| 372 void OnIncomingSSRCChanged(uint32_t ssrc) override; | 372 void OnIncomingSSRCChanged(uint32_t ssrc) override; |
| 373 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override; | 373 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override; |
| 374 | 374 |
| 375 // From RtpAudioFeedback in the RTP/RTCP module | 375 // From RtpAudioFeedback in the RTP/RTCP module |
| 376 void OnPlayTelephoneEvent(uint8_t event, | 376 void OnPlayTelephoneEvent(uint8_t event, |
| 377 uint16_t lengthMs, | 377 uint16_t lengthMs, |
| 378 uint8_t volume) override; | 378 uint8_t volume) override; |
| 379 | 379 |
| 380 // From Transport (called by the RTP/RTCP module) | 380 // From Transport (called by the RTP/RTCP module) |
| 381 int SendPacket(const void* data, size_t len) override; | 381 bool SendRtp(const uint8_t* data, size_t len) override; |
| 382 int SendRTCPPacket(const void* data, size_t len) override; | 382 bool SendRtcp(const uint8_t* data, size_t len) override; |
| 383 | 383 |
| 384 // From MixerParticipant | 384 // From MixerParticipant |
| 385 int32_t GetAudioFrame(int32_t id, AudioFrame* audioFrame) override; | 385 int32_t GetAudioFrame(int32_t id, AudioFrame* audioFrame) override; |
| 386 int32_t NeededFrequency(int32_t id) const override; | 386 int32_t NeededFrequency(int32_t id) const override; |
| 387 | 387 |
| 388 // From FileCallback | 388 // From FileCallback |
| 389 void PlayNotification(int32_t id, uint32_t durationMs) override; | 389 void PlayNotification(int32_t id, uint32_t durationMs) override; |
| 390 void RecordNotification(int32_t id, uint32_t durationMs) override; | 390 void RecordNotification(int32_t id, uint32_t durationMs) override; |
| 391 void PlayFileEnded(int32_t id) override; | 391 void PlayFileEnded(int32_t id) override; |
| 392 void RecordFileEnded(int32_t id) override; | 392 void RecordFileEnded(int32_t id) override; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 const RTPHeader& header, bool in_order); | 458 const RTPHeader& header, bool in_order); |
| 459 bool HandleRtxPacket(const uint8_t* packet, | 459 bool HandleRtxPacket(const uint8_t* packet, |
| 460 size_t packet_length, | 460 size_t packet_length, |
| 461 const RTPHeader& header); | 461 const RTPHeader& header); |
| 462 bool IsPacketInOrder(const RTPHeader& header) const; | 462 bool IsPacketInOrder(const RTPHeader& header) const; |
| 463 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; | 463 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; |
| 464 int ResendPackets(const uint16_t* sequence_numbers, int length); | 464 int ResendPackets(const uint16_t* sequence_numbers, int length); |
| 465 int InsertInbandDtmfTone(); | 465 int InsertInbandDtmfTone(); |
| 466 int32_t MixOrReplaceAudioWithFile(int mixingFrequency); | 466 int32_t MixOrReplaceAudioWithFile(int mixingFrequency); |
| 467 int32_t MixAudioWithFile(AudioFrame& audioFrame, int mixingFrequency); | 467 int32_t MixAudioWithFile(AudioFrame& audioFrame, int mixingFrequency); |
| 468 int32_t SendPacketRaw(const void *data, size_t len, bool RTCP); | |
| 469 void UpdatePlayoutTimestamp(bool rtcp); | 468 void UpdatePlayoutTimestamp(bool rtcp); |
| 470 void UpdatePacketDelay(uint32_t timestamp, | 469 void UpdatePacketDelay(uint32_t timestamp, |
| 471 uint16_t sequenceNumber); | 470 uint16_t sequenceNumber); |
| 472 void RegisterReceiveCodecsToRTPModule(); | 471 void RegisterReceiveCodecsToRTPModule(); |
| 473 | 472 |
| 474 int SetRedPayloadType(int red_payload_type); | 473 int SetRedPayloadType(int red_payload_type); |
| 475 int SetSendRtpHeaderExtension(bool enable, RTPExtensionType type, | 474 int SetSendRtpHeaderExtension(bool enable, RTPExtensionType type, |
| 476 unsigned char id); | 475 unsigned char id); |
| 477 | 476 |
| 478 int32_t GetPlayoutFrequency(); | 477 int32_t GetPlayoutFrequency(); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 rtc::scoped_ptr<NetworkPredictor> network_predictor_; | 581 rtc::scoped_ptr<NetworkPredictor> network_predictor_; |
| 583 // An associated send channel. | 582 // An associated send channel. |
| 584 rtc::scoped_ptr<CriticalSectionWrapper> assoc_send_channel_lock_; | 583 rtc::scoped_ptr<CriticalSectionWrapper> assoc_send_channel_lock_; |
| 585 ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_); | 584 ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_); |
| 586 }; | 585 }; |
| 587 | 586 |
| 588 } // namespace voe | 587 } // namespace voe |
| 589 } // namespace webrtc | 588 } // namespace webrtc |
| 590 | 589 |
| 591 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 590 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| OLD | NEW |