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 #include "webrtc/modules/audio_processing/ns/include/noise_suppression_x.h" | 11 #include "webrtc/modules/audio_processing/ns/noise_suppression_x.h" |
12 | 12 |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 | 14 |
15 #include "webrtc/common_audio/signal_processing/include/real_fft.h" | 15 #include "webrtc/common_audio/signal_processing/include/real_fft.h" |
16 #include "webrtc/modules/audio_processing/ns/nsx_core.h" | 16 #include "webrtc/modules/audio_processing/ns/nsx_core.h" |
17 #include "webrtc/modules/audio_processing/ns/nsx_defines.h" | 17 #include "webrtc/modules/audio_processing/ns/nsx_defines.h" |
18 | 18 |
19 NsxHandle* WebRtcNsx_Create() { | 19 NsxHandle* WebRtcNsx_Create() { |
20 NoiseSuppressionFixedC* self = malloc(sizeof(NoiseSuppressionFixedC)); | 20 NoiseSuppressionFixedC* self = malloc(sizeof(NoiseSuppressionFixedC)); |
21 WebRtcSpl_Init(); | 21 WebRtcSpl_Init(); |
(...skipping 15 matching lines...) Expand all Loading... |
37 return WebRtcNsx_set_policy_core((NoiseSuppressionFixedC*)nsxInst, mode); | 37 return WebRtcNsx_set_policy_core((NoiseSuppressionFixedC*)nsxInst, mode); |
38 } | 38 } |
39 | 39 |
40 void WebRtcNsx_Process(NsxHandle* nsxInst, | 40 void WebRtcNsx_Process(NsxHandle* nsxInst, |
41 const short* const* speechFrame, | 41 const short* const* speechFrame, |
42 int num_bands, | 42 int num_bands, |
43 short* const* outFrame) { | 43 short* const* outFrame) { |
44 WebRtcNsx_ProcessCore((NoiseSuppressionFixedC*)nsxInst, speechFrame, | 44 WebRtcNsx_ProcessCore((NoiseSuppressionFixedC*)nsxInst, speechFrame, |
45 num_bands, outFrame); | 45 num_bands, outFrame); |
46 } | 46 } |
OLD | NEW |