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 |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_X_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_X_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_X_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_X_H_ |
13 | 13 |
14 #include "webrtc/typedefs.h" | 14 #include "webrtc/typedefs.h" |
15 | 15 |
16 typedef struct NsxHandleT NsxHandle; | 16 typedef struct NsxHandleT NsxHandle; |
17 | 17 |
18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
19 extern "C" { | 19 extern "C" { |
20 #endif | 20 #endif |
21 | 21 |
22 /* | 22 /* |
23 * This function creates an instance to the noise reduction structure | 23 * This function creates an instance to the fixed point Noise Suppression. |
kwiberg-webrtc
2015/06/10 09:31:43
of
bjornv1
2015/06/10 19:03:04
Done
| |
24 * | |
25 * Input: | |
26 * - nsxInst : Pointer to noise reduction instance that should be | |
27 * created | |
28 * | |
29 * Output: | |
30 * - nsxInst : Pointer to created noise reduction instance | |
31 * | |
32 * Return value : 0 - Ok | |
33 * -1 - Error | |
34 */ | 24 */ |
35 int WebRtcNsx_Create(NsxHandle** nsxInst); | 25 NsxHandle* WebRtcNsx_Create(); |
36 | |
37 | 26 |
38 /* | 27 /* |
39 * This function frees the dynamic memory of a specified Noise Suppression | 28 * This function frees the dynamic memory of a specified Noise Suppression |
40 * instance. | 29 * instance. |
41 * | 30 * |
42 * Input: | 31 * Input: |
43 * - nsxInst : Pointer to NS instance that should be freed | 32 * - nsxInst : Pointer to NS instance that should be freed |
44 */ | 33 */ |
45 void WebRtcNsx_Free(NsxHandle* nsxInst); | 34 void WebRtcNsx_Free(NsxHandle* nsxInst); |
46 | 35 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 void WebRtcNsx_Process(NsxHandle* nsxInst, | 79 void WebRtcNsx_Process(NsxHandle* nsxInst, |
91 const short* const* speechFrame, | 80 const short* const* speechFrame, |
92 int num_bands, | 81 int num_bands, |
93 short* const* outFrame); | 82 short* const* outFrame); |
94 | 83 |
95 #ifdef __cplusplus | 84 #ifdef __cplusplus |
96 } | 85 } |
97 #endif | 86 #endif |
98 | 87 |
99 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_X_H_ | 88 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_INCLUDE_NOISE_SUPPRESSION_X_H_ |
OLD | NEW |