| 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 |
| 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ |
| 13 | 13 |
| 14 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 14 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 15 #include "webrtc/typedefs.h" | 15 #include "webrtc/typedefs.h" |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 | 18 |
| 19 class RtpAudioFeedback; | |
| 20 class RTPPayloadRegistry; | 19 class RTPPayloadRegistry; |
| 21 | 20 |
| 22 class TelephoneEventHandler { | 21 class TelephoneEventHandler { |
| 23 public: | 22 public: |
| 24 virtual ~TelephoneEventHandler() {} | 23 virtual ~TelephoneEventHandler() {} |
| 25 | 24 |
| 26 // The following three methods implement the TelephoneEventHandler interface. | 25 // The following three methods implement the TelephoneEventHandler interface. |
| 27 // Forward DTMFs to decoder for playout. | 26 // Forward DTMFs to decoder for playout. |
| 28 virtual void SetTelephoneEventForwardToDecoder(bool forward_to_decoder) = 0; | 27 virtual void SetTelephoneEventForwardToDecoder(bool forward_to_decoder) = 0; |
| 29 | 28 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 43 RtpFeedback* incoming_messages_callback, | 42 RtpFeedback* incoming_messages_callback, |
| 44 RTPPayloadRegistry* rtp_payload_registry); | 43 RTPPayloadRegistry* rtp_payload_registry); |
| 45 | 44 |
| 46 // Creates an audio-enabled RTP receiver. | 45 // Creates an audio-enabled RTP receiver. |
| 47 static RtpReceiver* CreateAudioReceiver( | 46 static RtpReceiver* CreateAudioReceiver( |
| 48 Clock* clock, | 47 Clock* clock, |
| 49 RtpData* incoming_payload_callback, | 48 RtpData* incoming_payload_callback, |
| 50 RtpFeedback* incoming_messages_callback, | 49 RtpFeedback* incoming_messages_callback, |
| 51 RTPPayloadRegistry* rtp_payload_registry); | 50 RTPPayloadRegistry* rtp_payload_registry); |
| 52 | 51 |
| 53 // DEPRECATED: Creates an audio-enabled RTP receiver. | |
| 54 // TODO(solenberg): Remove, after updating downstream code. | |
| 55 static RtpReceiver* CreateAudioReceiver( | |
| 56 Clock* clock, | |
| 57 RtpAudioFeedback* incoming_audio_feedback, | |
| 58 RtpData* incoming_payload_callback, | |
| 59 RtpFeedback* incoming_messages_callback, | |
| 60 RTPPayloadRegistry* rtp_payload_registry); | |
| 61 | |
| 62 virtual ~RtpReceiver() {} | 52 virtual ~RtpReceiver() {} |
| 63 | 53 |
| 64 // Returns a TelephoneEventHandler if available. | 54 // Returns a TelephoneEventHandler if available. |
| 65 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0; | 55 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0; |
| 66 | 56 |
| 67 // Registers a receive payload in the payload registry and notifies the media | 57 // Registers a receive payload in the payload registry and notifies the media |
| 68 // receiver strategy. | 58 // receiver strategy. |
| 69 virtual int32_t RegisterReceivePayload( | 59 virtual int32_t RegisterReceivePayload( |
| 70 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 60 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
| 71 const int8_t payload_type, | 61 const int8_t payload_type, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 93 |
| 104 // Returns the current remote CSRCs. | 94 // Returns the current remote CSRCs. |
| 105 virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const = 0; | 95 virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const = 0; |
| 106 | 96 |
| 107 // Returns the current energy of the RTP stream received. | 97 // Returns the current energy of the RTP stream received. |
| 108 virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const = 0; | 98 virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const = 0; |
| 109 }; | 99 }; |
| 110 } // namespace webrtc | 100 } // namespace webrtc |
| 111 | 101 |
| 112 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ | 102 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ |
| OLD | NEW |