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 26 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 } |
47 | |
48 const uint32_t* WebRtcNsx_noise_estimate(NsxHandle* nsxInst) { | |
hlundin-webrtc
2016/02/08 10:12:32
const input.
aluebs-webrtc
2016/02/09 00:01:43
Done.
| |
49 NoiseSuppressionFixedC* self = (NoiseSuppressionFixedC*)nsxInst; | |
hlundin-webrtc
2016/02/08 10:12:32
const
aluebs-webrtc
2016/02/09 00:01:43
Done.
| |
50 if (nsxInst == NULL || self->initFlag == 0) { | |
51 return NULL; | |
52 } | |
53 return self->prevNoiseU32; | |
54 } | |
55 | |
56 size_t WebRtcNsx_num_freq() { | |
57 return HALF_ANAL_BLOCKL; | |
58 } | |
OLD | NEW |