mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
![]() Fixing a bug due to which the analog controller could not be disabled. AudioProcessing::Config::GainController1::AnalogGainController::enabled was ignored and therefore `recommended_stream_analog_level_locked()` in APM was returning the level recommended by `AgcManagerDirect`. When the analog controller is disabled, `stream_analog_level()` now returns the last value set via `set_stream_analog_level()`. However, the analog controller code is still running and, in particular, the existing metrics are reported as if the controller were enabled. This choice was made to reduce the risks of adding bugs in the digital compression gain selection part, which is tied to the analog controller. The metric drawback will be solved in a follow-up CL. Additional changes: - log `WebRTC.Audio.GainController.Analog.Enabled` when AGC1 is created or when its config changes - first step to replace "analog level" with "input volume" Bug: webrtc:7909, b/180019868 Change-Id: I28ce9556dd98f3dd9ad546799406c55478730435 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/270663 Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38044} |
||
---|---|---|
.. | ||
legacy | ||
agc.cc | ||
agc.h | ||
agc_manager_direct.cc | ||
agc_manager_direct.h | ||
agc_manager_direct_unittest.cc | ||
analog_gain_stats_reporter.cc | ||
analog_gain_stats_reporter.h | ||
analog_gain_stats_reporter_unittest.cc | ||
BUILD.gn | ||
clipping_predictor.cc | ||
clipping_predictor.h | ||
clipping_predictor_evaluator.cc | ||
clipping_predictor_evaluator.h | ||
clipping_predictor_evaluator_unittest.cc | ||
clipping_predictor_level_buffer.cc | ||
clipping_predictor_level_buffer.h | ||
clipping_predictor_level_buffer_unittest.cc | ||
clipping_predictor_unittest.cc | ||
gain_control.h | ||
gain_map_internal.h | ||
loudness_histogram.cc | ||
loudness_histogram.h | ||
loudness_histogram_unittest.cc | ||
mock_agc.h | ||
utility.cc | ||
utility.h |