Chromium Code Reviews| Index: webrtc/modules/audio_processing/noise_suppression_impl.cc |
| diff --git a/webrtc/modules/audio_processing/noise_suppression_impl.cc b/webrtc/modules/audio_processing/noise_suppression_impl.cc |
| index a9d9f4a93bbf8086105ea4cb28fc0ee181be644b..1341aa8612e2dc994715d69a542b30c8fba518f9 100644 |
| --- a/webrtc/modules/audio_processing/noise_suppression_impl.cc |
| +++ b/webrtc/modules/audio_processing/noise_suppression_impl.cc |
| @@ -177,17 +177,15 @@ std::vector<float> NoiseSuppressionImpl::NoiseEstimate() { |
| rtc::CritScope cs(crit_); |
| std::vector<float> noise_estimate; |
| #if defined(WEBRTC_NS_FLOAT) |
| - const float kNormalizationFactor = 1.f / (1 << 15); |
| noise_estimate.assign(WebRtcNs_num_freq(), 0.f); |
| for (auto& suppressor : suppressors_) { |
| const float* noise = WebRtcNs_noise_estimate(suppressor->state()); |
| for (size_t i = 0; i < noise_estimate.size(); ++i) { |
| - noise_estimate[i] += |
| - kNormalizationFactor * noise[i] / suppressors_.size(); |
| + noise_estimate[i] += noise[i] / suppressors_.size(); |
|
peah-webrtc
2016/03/21 12:25:48
This change basically removes the normalization of
turaj
2016/03/21 13:50:23
My concern is that both forward and reverse stream
aluebs-webrtc
2016/03/29 23:15:16
Exactly, I was testing it in the intelligibility_p
|
| } |
| } |
| #elif defined(WEBRTC_NS_FIXED) |
| - const float kNormalizationFactor = 1.f / (1 << 23); |
| + const float kNormalizationFactor = 1.f / (1 << 9); |
|
hlundin-webrtc
2016/03/29 19:19:36
Why change from 23 to 9 (a reduction by 14 shifts)
aluebs-webrtc
2016/03/29 23:15:16
Good catch! I was just checking when the output wa
|
| noise_estimate.assign(WebRtcNsx_num_freq(), 0.f); |
| for (auto& suppressor : suppressors_) { |
| const uint32_t* noise = WebRtcNsx_noise_estimate(suppressor->state()); |