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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // The speech type is written to |type|, if |type| is not NULL. | 103 // The speech type is written to |type|, if |type| is not NULL. |
104 // Returns kOK on success, or kFail in case of an error. | 104 // Returns kOK on success, or kFail in case of an error. |
105 int GetAudio(size_t max_length, | 105 int GetAudio(size_t max_length, |
106 int16_t* output_audio, | 106 int16_t* output_audio, |
107 size_t* samples_per_channel, | 107 size_t* samples_per_channel, |
108 int* num_channels, | 108 int* num_channels, |
109 NetEqOutputType* type) override; | 109 NetEqOutputType* type) override; |
110 | 110 |
111 // Associates |rtp_payload_type| with |codec| and stores the information in | 111 // Associates |rtp_payload_type| with |codec| and stores the information in |
112 // the codec database. Returns kOK on success, kFail on failure. | 112 // the codec database. Returns kOK on success, kFail on failure. |
113 int RegisterPayloadType(enum NetEqDecoder codec, | 113 int RegisterPayloadType(NetEqDecoder codec, |
114 uint8_t rtp_payload_type) override; | 114 uint8_t rtp_payload_type) override; |
115 | 115 |
116 // Provides an externally created decoder object |decoder| to insert in the | 116 // Provides an externally created decoder object |decoder| to insert in the |
117 // decoder database. The decoder implements a decoder of type |codec| and | 117 // decoder database. The decoder implements a decoder of type |codec| and |
118 // associates it with |rtp_payload_type|. The decoder will produce samples | 118 // associates it with |rtp_payload_type|. The decoder will produce samples |
119 // at the rate |sample_rate_hz|. Returns kOK on success, kFail on failure. | 119 // at the rate |sample_rate_hz|. Returns kOK on success, kFail on failure. |
120 int RegisterExternalDecoder(AudioDecoder* decoder, | 120 int RegisterExternalDecoder(AudioDecoder* decoder, |
121 enum NetEqDecoder codec, | 121 NetEqDecoder codec, |
122 uint8_t rtp_payload_type, | 122 uint8_t rtp_payload_type, |
123 int sample_rate_hz) override; | 123 int sample_rate_hz) override; |
124 | 124 |
125 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, | 125 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, |
126 // -1 on failure. | 126 // -1 on failure. |
127 int RemovePayloadType(uint8_t rtp_payload_type) override; | 127 int RemovePayloadType(uint8_t rtp_payload_type) override; |
128 | 128 |
129 bool SetMinimumDelay(int delay_ms) override; | 129 bool SetMinimumDelay(int delay_ms) override; |
130 | 130 |
131 bool SetMaximumDelay(int delay_ms) override; | 131 bool SetMaximumDelay(int delay_ms) override; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // module is designed to compensate for this. | 403 // module is designed to compensate for this. |
404 int decoded_packet_sequence_number_ GUARDED_BY(crit_sect_); | 404 int decoded_packet_sequence_number_ GUARDED_BY(crit_sect_); |
405 uint32_t decoded_packet_timestamp_ GUARDED_BY(crit_sect_); | 405 uint32_t decoded_packet_timestamp_ GUARDED_BY(crit_sect_); |
406 | 406 |
407 private: | 407 private: |
408 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); | 408 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); |
409 }; | 409 }; |
410 | 410 |
411 } // namespace webrtc | 411 } // namespace webrtc |
412 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ | 412 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ |
OLD | NEW |