Chromium Code Reviews| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 * | 208 * |
| 209 * Input: | 209 * Input: |
| 210 * - inst : Encoder context | 210 * - inst : Encoder context |
| 211 * - num_channels : 0 - Not forced | 211 * - num_channels : 0 - Not forced |
| 212 * 1 - Mono | 212 * 1 - Mono |
| 213 * 2 - Stereo | 213 * 2 - Stereo |
| 214 * | 214 * |
| 215 * Return value : 0 - Success | 215 * Return value : 0 - Success |
| 216 * -1 - Error | 216 * -1 - Error |
| 217 */ | 217 */ |
| 218 int16_t WebRtcOpus_SetForceChannels(OpusEncInst* inst, int32_t num_channels); | 218 int16_t WebRtcOpus_SetForceChannels(OpusEncInst* inst, size_t num_channels); |
|
minyue-webrtc
2016/10/06 11:24:05
I found that size_t suits better here and can avoi
kwiberg-webrtc
2016/10/06 12:18:10
Acknowledged.
| |
| 219 | 219 |
| 220 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, size_t channels); | 220 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, size_t channels); |
| 221 int16_t WebRtcOpus_DecoderFree(OpusDecInst* inst); | 221 int16_t WebRtcOpus_DecoderFree(OpusDecInst* inst); |
| 222 | 222 |
| 223 /**************************************************************************** | 223 /**************************************************************************** |
| 224 * WebRtcOpus_DecoderChannels(...) | 224 * WebRtcOpus_DecoderChannels(...) |
| 225 * | 225 * |
| 226 * This function returns the number of channels created for Opus decoder. | 226 * This function returns the number of channels created for Opus decoder. |
| 227 */ | 227 */ |
| 228 size_t WebRtcOpus_DecoderChannels(OpusDecInst* inst); | 228 size_t WebRtcOpus_DecoderChannels(OpusDecInst* inst); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 * 1 - the packet contains FEC. | 362 * 1 - the packet contains FEC. |
| 363 */ | 363 */ |
| 364 int WebRtcOpus_PacketHasFec(const uint8_t* payload, | 364 int WebRtcOpus_PacketHasFec(const uint8_t* payload, |
| 365 size_t payload_length_bytes); | 365 size_t payload_length_bytes); |
| 366 | 366 |
| 367 #ifdef __cplusplus | 367 #ifdef __cplusplus |
| 368 } // extern "C" | 368 } // extern "C" |
| 369 #endif | 369 #endif |
| 370 | 370 |
| 371 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_ | 371 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_ |
| OLD | NEW |