Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: webrtc/modules/audio_processing/ns/noise_suppression_x.c

Issue 1821443003: Fix normalization of noise estimate in NoiseSuppressor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Disable noise suppressor bit-exactness unittests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_processing/ns/noise_suppression_x.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 efe8a5bf2b5d2134172925cc6cae93a8ff6f8546..28a07e8c1df65fab4e93ab901f01be80325b6654 100644
--- a/webrtc/modules/audio_processing/ns/noise_suppression_x.c
+++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.c
@@ -45,11 +45,14 @@ void WebRtcNsx_Process(NsxHandle* nsxInst,
num_bands, outFrame);
}
-const uint32_t* WebRtcNsx_noise_estimate(const NsxHandle* nsxInst) {
+const uint32_t* WebRtcNsx_noise_estimate(const NsxHandle* nsxInst,
+ int* q_noise) {
+ *q_noise = 11;
const NoiseSuppressionFixedC* self = (const NoiseSuppressionFixedC*)nsxInst;
if (nsxInst == NULL || self->initFlag == 0) {
return NULL;
}
+ *q_noise += self->prevQNoise;
return self->prevNoiseU32;
}
« no previous file with comments | « webrtc/modules/audio_processing/ns/noise_suppression_x.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698