| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 int16_t WebRtcIlbcfix_DecoderInit(IlbcDecoderInstance* iLBCdec_inst, | 125 int16_t WebRtcIlbcfix_DecoderInit(IlbcDecoderInstance* iLBCdec_inst, |
| 126 int16_t mode) { | 126 int16_t mode) { |
| 127 if ((mode==20)||(mode==30)) { | 127 if ((mode==20)||(mode==30)) { |
| 128 WebRtcIlbcfix_InitDecode((IlbcDecoder*) iLBCdec_inst, mode, 1); | 128 WebRtcIlbcfix_InitDecode((IlbcDecoder*) iLBCdec_inst, mode, 1); |
| 129 return(0); | 129 return(0); |
| 130 } else { | 130 } else { |
| 131 return(-1); | 131 return(-1); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 int16_t WebRtcIlbcfix_DecoderInit20Ms(IlbcDecoderInstance *iLBCdec_inst) { | 134 void WebRtcIlbcfix_DecoderInit20Ms(IlbcDecoderInstance* iLBCdec_inst) { |
| 135 WebRtcIlbcfix_InitDecode((IlbcDecoder*) iLBCdec_inst, 20, 1); | 135 WebRtcIlbcfix_InitDecode((IlbcDecoder*) iLBCdec_inst, 20, 1); |
| 136 return(0); | |
| 137 } | 136 } |
| 138 int16_t WebRtcIlbcfix_Decoderinit30Ms(IlbcDecoderInstance *iLBCdec_inst) { | 137 void WebRtcIlbcfix_Decoderinit30Ms(IlbcDecoderInstance* iLBCdec_inst) { |
| 139 WebRtcIlbcfix_InitDecode((IlbcDecoder*) iLBCdec_inst, 30, 1); | 138 WebRtcIlbcfix_InitDecode((IlbcDecoder*) iLBCdec_inst, 30, 1); |
| 140 return(0); | |
| 141 } | 139 } |
| 142 | 140 |
| 143 | 141 |
| 144 int WebRtcIlbcfix_Decode(IlbcDecoderInstance* iLBCdec_inst, | 142 int WebRtcIlbcfix_Decode(IlbcDecoderInstance* iLBCdec_inst, |
| 145 const uint8_t* encoded, | 143 const uint8_t* encoded, |
| 146 size_t len, | 144 size_t len, |
| 147 int16_t* decoded, | 145 int16_t* decoded, |
| 148 int16_t* speechType) | 146 int16_t* speechType) |
| 149 { | 147 { |
| 150 size_t i=0; | 148 size_t i=0; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 WebRtcSpl_MemSetW16(((IlbcDecoder*)iLBCdec_inst)->enh_buf, 0, ENH_BUFL); | 273 WebRtcSpl_MemSetW16(((IlbcDecoder*)iLBCdec_inst)->enh_buf, 0, ENH_BUFL); |
| 276 ((IlbcDecoder*)iLBCdec_inst)->prev_enh_pl = 2; | 274 ((IlbcDecoder*)iLBCdec_inst)->prev_enh_pl = 2; |
| 277 | 275 |
| 278 return (0); | 276 return (0); |
| 279 } | 277 } |
| 280 | 278 |
| 281 void WebRtcIlbcfix_version(char *version) | 279 void WebRtcIlbcfix_version(char *version) |
| 282 { | 280 { |
| 283 strcpy((char*)version, "1.1.1"); | 281 strcpy((char*)version, "1.1.1"); |
| 284 } | 282 } |
| OLD | NEW |