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

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 1913603002: Compensate for the compression gain in the IntelligibilityEnhancer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
Index: webrtc/modules/audio_processing/audio_processing_impl.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc
index af6d9b7a2123bc0daa289ed769b99107be8d181f..00c28ada11ee1b685fc79a6ca0b99a5933a6303b 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -707,7 +707,8 @@ int AudioProcessingImpl::ProcessStreamLocked() {
if (constants_.intelligibility_enabled) {
RTC_DCHECK(public_submodules_->noise_suppression->is_enabled());
public_submodules_->intelligibility_enhancer->SetCaptureNoiseEstimate(
- public_submodules_->noise_suppression->NoiseEstimate());
+ public_submodules_->noise_suppression->NoiseEstimate(),
+ public_submodules_->gain_control->compression_gain_db());
peah-webrtc 2016/04/25 07:23:20 Is there some action in place to ensure that the A
aluebs-webrtc 2016/04/27 22:52:58 Good point. Done.
}
// Ensure that the stream delay was set before the call to the

Powered by Google App Engine
This is Rietveld 408576698