OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 15 matching lines...) Expand all Loading... |
26 // Callbacks passed in here may not be NULL (use Null Object callbacks if you | 26 // Callbacks passed in here may not be NULL (use Null Object callbacks if you |
27 // want callbacks to do nothing). This class takes ownership of the media | 27 // want callbacks to do nothing). This class takes ownership of the media |
28 // receiver but nothing else. | 28 // receiver but nothing else. |
29 RtpReceiverImpl(Clock* clock, | 29 RtpReceiverImpl(Clock* clock, |
30 RtpFeedback* incoming_messages_callback, | 30 RtpFeedback* incoming_messages_callback, |
31 RTPPayloadRegistry* rtp_payload_registry, | 31 RTPPayloadRegistry* rtp_payload_registry, |
32 RTPReceiverStrategy* rtp_media_receiver); | 32 RTPReceiverStrategy* rtp_media_receiver); |
33 | 33 |
34 virtual ~RtpReceiverImpl(); | 34 virtual ~RtpReceiverImpl(); |
35 | 35 |
| 36 int32_t RegisterReceivePayload(const CodecInst& audio_codec) override; |
| 37 // TODO(magjed): Remove once external code is updated. |
36 int32_t RegisterReceivePayload(const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 38 int32_t RegisterReceivePayload(const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
37 const int8_t payload_type, | 39 const int8_t payload_type, |
38 const uint32_t frequency, | 40 const uint32_t frequency, |
39 const size_t channels, | 41 const size_t channels, |
40 const uint32_t rate) override; | 42 const uint32_t rate) override; |
41 | 43 |
42 int32_t DeRegisterReceivePayload(const int8_t payload_type) override; | 44 int32_t DeRegisterReceivePayload(const int8_t payload_type) override; |
43 | 45 |
44 bool IncomingRtpPacket(const RTPHeader& rtp_header, | 46 bool IncomingRtpPacket(const RTPHeader& rtp_header, |
45 const uint8_t* payload, | 47 const uint8_t* payload, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 uint32_t ssrc_; | 85 uint32_t ssrc_; |
84 uint8_t num_csrcs_; | 86 uint8_t num_csrcs_; |
85 uint32_t current_remote_csrc_[kRtpCsrcSize]; | 87 uint32_t current_remote_csrc_[kRtpCsrcSize]; |
86 | 88 |
87 uint32_t last_received_timestamp_; | 89 uint32_t last_received_timestamp_; |
88 int64_t last_received_frame_time_ms_; | 90 int64_t last_received_frame_time_ms_; |
89 uint16_t last_received_sequence_number_; | 91 uint16_t last_received_sequence_number_; |
90 }; | 92 }; |
91 } // namespace webrtc | 93 } // namespace webrtc |
92 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_IMPL_H_ | 94 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_IMPL_H_ |
OLD | NEW |