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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 */ | 205 */ |
206 int WebRtcOpus_DecoderChannels(OpusDecInst* inst); | 206 int WebRtcOpus_DecoderChannels(OpusDecInst* inst); |
207 | 207 |
208 /**************************************************************************** | 208 /**************************************************************************** |
209 * WebRtcOpus_DecoderInit(...) | 209 * WebRtcOpus_DecoderInit(...) |
210 * | 210 * |
211 * This function resets state of the decoder. | 211 * This function resets state of the decoder. |
212 * | 212 * |
213 * Input: | 213 * Input: |
214 * - inst : Decoder context | 214 * - inst : Decoder context |
215 * | |
216 * Return value : 0 - Success | |
217 * -1 - Error | |
218 */ | 215 */ |
219 int16_t WebRtcOpus_DecoderInit(OpusDecInst* inst); | 216 void WebRtcOpus_DecoderInit(OpusDecInst* inst); |
220 | 217 |
221 /**************************************************************************** | 218 /**************************************************************************** |
222 * WebRtcOpus_Decode(...) | 219 * WebRtcOpus_Decode(...) |
223 * | 220 * |
224 * This function decodes an Opus packet into one or more audio frames at the | 221 * This function decodes an Opus packet into one or more audio frames at the |
225 * ACM interface's sampling rate (32 kHz). | 222 * ACM interface's sampling rate (32 kHz). |
226 * | 223 * |
227 * Input: | 224 * Input: |
228 * - inst : Decoder context | 225 * - inst : Decoder context |
229 * - encoded : Encoded data | 226 * - encoded : Encoded data |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 * 1 - the packet contains FEC. | 326 * 1 - the packet contains FEC. |
330 */ | 327 */ |
331 int WebRtcOpus_PacketHasFec(const uint8_t* payload, | 328 int WebRtcOpus_PacketHasFec(const uint8_t* payload, |
332 size_t payload_length_bytes); | 329 size_t payload_length_bytes); |
333 | 330 |
334 #ifdef __cplusplus | 331 #ifdef __cplusplus |
335 } // extern "C" | 332 } // extern "C" |
336 #endif | 333 #endif |
337 | 334 |
338 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INTERFACE_OPUS_INTERFACE_H_ | 335 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INTERFACE_OPUS_INTERFACE_H_ |
OLD | NEW |