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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 bool is_red, | 49 bool is_red, |
50 const uint8_t* packet, | 50 const uint8_t* packet, |
51 size_t payload_length, | 51 size_t payload_length, |
52 int64_t timestamp_ms, | 52 int64_t timestamp_ms, |
53 bool is_first_packet) override; | 53 bool is_first_packet) override; |
54 | 54 |
55 RTPAliveType ProcessDeadOrAlive(uint16_t last_payload_length) const override; | 55 RTPAliveType ProcessDeadOrAlive(uint16_t last_payload_length) const override; |
56 | 56 |
57 bool ShouldReportCsrcChanges(uint8_t payload_type) const override; | 57 bool ShouldReportCsrcChanges(uint8_t payload_type) const override; |
58 | 58 |
59 int32_t OnNewPayloadTypeCreated( | 59 int32_t OnNewPayloadTypeCreated(const CodecInst& audio_codec) override; |
60 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | |
61 int8_t payload_type, | |
62 uint32_t frequency) override; | |
63 | 60 |
64 int32_t InvokeOnInitializeDecoder( | 61 int32_t InvokeOnInitializeDecoder( |
65 RtpFeedback* callback, | 62 RtpFeedback* callback, |
66 int8_t payload_type, | 63 int8_t payload_type, |
67 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 64 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
68 const PayloadUnion& specific_payload) const override; | 65 const PayloadUnion& specific_payload) const override; |
69 | 66 |
70 // We do not allow codecs to have multiple payload types for audio, so we | 67 // We do not allow codecs to have multiple payload types for audio, so we |
71 // need to override the default behavior (which is to do nothing). | 68 // need to override the default behavior (which is to do nothing). |
72 void PossiblyRemoveExistingPayloadType( | 69 void PossiblyRemoveExistingPayloadType( |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 int8_t cng_fb_payload_type_; | 101 int8_t cng_fb_payload_type_; |
105 | 102 |
106 uint8_t num_energy_; | 103 uint8_t num_energy_; |
107 uint8_t current_remote_energy_[kRtpCsrcSize]; | 104 uint8_t current_remote_energy_[kRtpCsrcSize]; |
108 | 105 |
109 ThreadUnsafeOneTimeEvent first_packet_received_; | 106 ThreadUnsafeOneTimeEvent first_packet_received_; |
110 }; | 107 }; |
111 } // namespace webrtc | 108 } // namespace webrtc |
112 | 109 |
113 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_AUDIO_H_ | 110 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_AUDIO_H_ |
OLD | NEW |