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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 int init_flag; | 54 int init_flag; |
55 | 55 |
56 } VadInstT; | 56 } VadInstT; |
57 | 57 |
58 // Initializes the core VAD component. The default aggressiveness mode is | 58 // Initializes the core VAD component. The default aggressiveness mode is |
59 // controlled by |kDefaultMode| in vad_core.c. | 59 // controlled by |kDefaultMode| in vad_core.c. |
60 // | 60 // |
61 // - self [i/o] : Instance that should be initialized | 61 // - self [i/o] : Instance that should be initialized |
62 // | 62 // |
63 // returns : 0 (OK), -1 (NULL pointer in or if the default mode can't be | 63 // returns : 0 (OK), -1 (null pointer in or if the default mode can't be |
64 // set) | 64 // set) |
65 int WebRtcVad_InitCore(VadInstT* self); | 65 int WebRtcVad_InitCore(VadInstT* self); |
66 | 66 |
67 /**************************************************************************** | 67 /**************************************************************************** |
68 * WebRtcVad_set_mode_core(...) | 68 * WebRtcVad_set_mode_core(...) |
69 * | 69 * |
70 * This function changes the VAD settings | 70 * This function changes the VAD settings |
71 * | 71 * |
72 * Input: | 72 * Input: |
73 * - inst : VAD instance | 73 * - inst : VAD instance |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 int WebRtcVad_CalcVad48khz(VadInstT* inst, const int16_t* speech_frame, | 106 int WebRtcVad_CalcVad48khz(VadInstT* inst, const int16_t* speech_frame, |
107 size_t frame_length); | 107 size_t frame_length); |
108 int WebRtcVad_CalcVad32khz(VadInstT* inst, const int16_t* speech_frame, | 108 int WebRtcVad_CalcVad32khz(VadInstT* inst, const int16_t* speech_frame, |
109 size_t frame_length); | 109 size_t frame_length); |
110 int WebRtcVad_CalcVad16khz(VadInstT* inst, const int16_t* speech_frame, | 110 int WebRtcVad_CalcVad16khz(VadInstT* inst, const int16_t* speech_frame, |
111 size_t frame_length); | 111 size_t frame_length); |
112 int WebRtcVad_CalcVad8khz(VadInstT* inst, const int16_t* speech_frame, | 112 int WebRtcVad_CalcVad8khz(VadInstT* inst, const int16_t* speech_frame, |
113 size_t frame_length); | 113 size_t frame_length); |
114 | 114 |
115 #endif // WEBRTC_COMMON_AUDIO_VAD_VAD_CORE_H_ | 115 #endif // WEBRTC_COMMON_AUDIO_VAD_VAD_CORE_H_ |
OLD | NEW |