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..aea5159834dc54ed99418f58340e5b6e644dcf39 100644 |
--- a/webrtc/modules/audio_processing/ns/noise_suppression_x.c |
+++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.c |
@@ -56,3 +56,12 @@ const uint32_t* WebRtcNsx_noise_estimate(const NsxHandle* nsxInst) { |
size_t WebRtcNsx_num_freq() { |
return HALF_ANAL_BLOCKL; |
} |
+ |
+int WebRtcNsx_noise_estimate_domain(NsxHandle* nsxInst) { |
+ int domain = 11; |
+ const NoiseSuppressionFixedC* self = (const NoiseSuppressionFixedC*)nsxInst; |
+ if (nsxInst != NULL && self->initFlag != 0) { |
+ domain += self->prevQNoise; |
+ } |
+ return domain; |
+} |