| 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 10 matching lines...) Expand all Loading... |
| 21 #define CLOCKS_PER_SEC 1000 | 21 #define CLOCKS_PER_SEC 1000 |
| 22 #endif | 22 #endif |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 #include <ctype.h> | 25 #include <ctype.h> |
| 26 #include <math.h> | 26 #include <math.h> |
| 27 | 27 |
| 28 /* include API */ | 28 /* include API */ |
| 29 #include "isac.h" | 29 #include "isac.h" |
| 30 #include "utility.h" | 30 #include "utility.h" |
| 31 #include "webrtc/base/format_macros.h" | 31 #include "webrtc/rtc_base/format_macros.h" |
| 32 | 32 |
| 33 /* max number of samples per frame (= 60 ms frame) */ | 33 /* max number of samples per frame (= 60 ms frame) */ |
| 34 #define MAX_FRAMESAMPLES_SWB 1920 | 34 #define MAX_FRAMESAMPLES_SWB 1920 |
| 35 /* number of samples per 10ms frame */ | 35 /* number of samples per 10ms frame */ |
| 36 #define FRAMESAMPLES_SWB_10ms 320 | 36 #define FRAMESAMPLES_SWB_10ms 320 |
| 37 #define FRAMESAMPLES_WB_10ms 160 | 37 #define FRAMESAMPLES_WB_10ms 160 |
| 38 | 38 |
| 39 /* sampling frequency (Hz) */ | 39 /* sampling frequency (Hz) */ |
| 40 #define FS_SWB 32000 | 40 #define FS_SWB 32000 |
| 41 #define FS_WB 16000 | 41 #define FS_WB 16000 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 fclose(averageFile); | 458 fclose(averageFile); |
| 459 } | 459 } |
| 460 | 460 |
| 461 fclose(inp); | 461 fclose(inp); |
| 462 fclose(outp); | 462 fclose(outp); |
| 463 | 463 |
| 464 WebRtcIsac_Free(ISAC_main_inst); | 464 WebRtcIsac_Free(ISAC_main_inst); |
| 465 | 465 |
| 466 exit(0); | 466 exit(0); |
| 467 } | 467 } |
| OLD | NEW |