APM: remove LevelEstimator
Only used in unit tests and a duplication of what `capture_output_rms_` already does. This CL also removes `AudioProcessingStats::output_rms_dbfs`, which is now unused. Bug: webrtc:5298 Fix: chromium:1261339 Change-Id: I6e583c11d4abb58444c440509a8495a7f5ebc589 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235664 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35246}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
00c62eddf4
commit
183c64ce19
@ -443,7 +443,6 @@ class CallSimulator : public ::testing::TestWithParam<SimulationConfig> {
|
||||
apm_config.gain_controller1.enabled = true;
|
||||
apm_config.gain_controller1.mode =
|
||||
AudioProcessing::Config::GainController1::kAdaptiveDigital;
|
||||
apm_config.level_estimation.enabled = true;
|
||||
apm_config.voice_detection.enabled = true;
|
||||
apm->ApplyConfig(apm_config);
|
||||
};
|
||||
@ -456,7 +455,6 @@ class CallSimulator : public ::testing::TestWithParam<SimulationConfig> {
|
||||
apm_config.noise_suppression.enabled = true;
|
||||
apm_config.gain_controller1.mode =
|
||||
AudioProcessing::Config::GainController1::kAdaptiveDigital;
|
||||
apm_config.level_estimation.enabled = true;
|
||||
apm_config.voice_detection.enabled = true;
|
||||
apm->ApplyConfig(apm_config);
|
||||
};
|
||||
@ -467,7 +465,6 @@ class CallSimulator : public ::testing::TestWithParam<SimulationConfig> {
|
||||
AudioProcessing::Config apm_config = apm->GetConfig();
|
||||
apm_config.echo_canceller.enabled = false;
|
||||
apm_config.gain_controller1.enabled = false;
|
||||
apm_config.level_estimation.enabled = false;
|
||||
apm_config.noise_suppression.enabled = false;
|
||||
apm_config.voice_detection.enabled = false;
|
||||
apm->ApplyConfig(apm_config);
|
||||
|
||||
Reference in New Issue
Block a user