commit | ffa1d173fe8326f86b8111e19341d25285124953 | [log] [tgz] |
---|---|---|
author | Per Åhgren <peah@webrtc.org> | Thu Apr 11 13:44:38 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Apr 11 14:23:22 2019 |
tree | a1241da2eeed96cb887300313913c8db5dd9635f | |
parent | 52caa0ef58c658c15bb6684cc36bd7b1dd8cc09c [diff] |
AEC3: Correcting minimum comfort noise levels This CL corrects the minimum bound for the estimated comfort noise level. Bug: webrtc:10533 Change-Id: I473275ffbc7bb52572315849f30e13b764109d92 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132003 Reviewed-by: Per Åhgren <peah@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27567}
diff --git a/modules/audio_processing/aec3/comfort_noise_generator.cc b/modules/audio_processing/aec3/comfort_noise_generator.cc index 1e3cdf2..bedd227 100644 --- a/modules/audio_processing/aec3/comfort_noise_generator.cc +++ b/modules/audio_processing/aec3/comfort_noise_generator.cc
@@ -139,8 +139,9 @@ } } - // Limit the noise to a floor of -96 dBFS. - constexpr float kNoiseFloor = 440.f; + // Limit the noise to a floor matching a WGN input of -96 dBFS. + constexpr float kNoiseFloor = 17.1267f; + for (auto& n : N2_) { n = std::max(n, kNoiseFloor); }