Chromium Code Reviews| Index: webrtc/modules/audio_processing/ns/noise_suppression.c |
| diff --git a/webrtc/modules/audio_processing/ns/noise_suppression.c b/webrtc/modules/audio_processing/ns/noise_suppression.c |
| index dd05e0ab3d7f905ca8f936d605e3bd90e0f78f46..5c826909188c0d96174a04413c1ec2d7e60e8641 100644 |
| --- a/webrtc/modules/audio_processing/ns/noise_suppression.c |
| +++ b/webrtc/modules/audio_processing/ns/noise_suppression.c |
| @@ -57,3 +57,15 @@ float WebRtcNs_prior_speech_probability(NsHandle* handle) { |
| } |
| return self->priorSpeechProb; |
| } |
| + |
| +float* WebRtcNs_noise_estimate(NsHandle* handle) { |
| + NoiseSuppressionC* self = (NoiseSuppressionC*)handle; |
| + if (handle == NULL || self->initFlag == 0) { |
| + return NULL; |
|
turaj
2016/02/05 01:47:58
Is NULL preferred over nullptr in WebRTC?
aluebs-webrtc
2016/02/06 00:12:28
No, but nullptr is C++11 and this is a C file :)
|
| + } |
| + return self->noise; |
| +} |
| + |
| +size_t WebRtcNs_num_freq() { |
| + return HALF_ANAL_BLOCKL; |
| +} |