Chromium Code Reviews| Index: webrtc/modules/audio_processing/ns/noise_suppression_x.c |
| diff --git a/webrtc/modules/audio_processing/ns/noise_suppression_x.c b/webrtc/modules/audio_processing/ns/noise_suppression_x.c |
| index 0a5ba133002b6d2e5cc8e5d824cf68106ed6de9e..54f0a0217f26ec5bd2a962d1ff674478726da051 100644 |
| --- a/webrtc/modules/audio_processing/ns/noise_suppression_x.c |
| +++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.c |
| @@ -44,3 +44,15 @@ void WebRtcNsx_Process(NsxHandle* nsxInst, |
| WebRtcNsx_ProcessCore((NoiseSuppressionFixedC*)nsxInst, speechFrame, |
| num_bands, outFrame); |
| } |
| + |
| +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.
|
| + NoiseSuppressionFixedC* self = (NoiseSuppressionFixedC*)nsxInst; |
|
hlundin-webrtc
2016/02/08 10:12:32
const
aluebs-webrtc
2016/02/09 00:01:43
Done.
|
| + if (nsxInst == NULL || self->initFlag == 0) { |
| + return NULL; |
| + } |
| + return self->prevNoiseU32; |
| +} |
| + |
| +size_t WebRtcNsx_num_freq() { |
| + return HALF_ANAL_BLOCKL; |
| +} |