OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 |
11 /****************************************************************** | 11 /****************************************************************** |
12 | 12 |
13 iLBC Speech Coder ANSI-C Source Code | 13 iLBC Speech Coder ANSI-C Source Code |
14 | 14 |
15 iLBC_test.c | 15 iLBC_test.c |
16 | 16 |
17 ******************************************************************/ | 17 ******************************************************************/ |
18 | 18 |
19 #include <math.h> | 19 #include <math.h> |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 #include <stdio.h> | 21 #include <stdio.h> |
22 #include <string.h> | 22 #include <string.h> |
23 #include <time.h> | 23 #include <time.h> |
24 #include "ilbc.h" | 24 #include "webrtc/modules/audio_coding/codecs/ilbc/ilbc.h" |
25 | 25 |
26 //#define JUNK_DATA | 26 //#define JUNK_DATA |
27 #ifdef JUNK_DATA | 27 #ifdef JUNK_DATA |
28 #define SEED_FILE "randseed.txt" | 28 #define SEED_FILE "randseed.txt" |
29 #endif | 29 #endif |
30 | 30 |
31 | 31 |
32 /*----------------------------------------------------------------* | 32 /*----------------------------------------------------------------* |
33 * Main program to test iLBC encoding and decoding | 33 * Main program to test iLBC encoding and decoding |
34 * | 34 * |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 WebRtcIlbcfix_EncoderFree(Enc_Inst); | 206 WebRtcIlbcfix_EncoderFree(Enc_Inst); |
207 WebRtcIlbcfix_DecoderFree(Dec_Inst); | 207 WebRtcIlbcfix_DecoderFree(Dec_Inst); |
208 | 208 |
209 /* close files */ | 209 /* close files */ |
210 fclose(ifileid); | 210 fclose(ifileid); |
211 fclose(efileid); | 211 fclose(efileid); |
212 fclose(ofileid); | 212 fclose(ofileid); |
213 | 213 |
214 return 0; | 214 return 0; |
215 } | 215 } |
OLD | NEW |