AudioProcessing: Make minimum and maximum analog levels non-configurable
Remove analog_level_minimum and analog_level_maximum from AudioProcessing GainController1 and replace their use with fixed values 0 and 255, respectively. Bug: webrtc:12774 Change-Id: Ia4bfe5ed43a65f1587ed67f36bfbb2966b6fdf26 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235822 Commit-Queue: Hanna Silen <silen@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35297}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
31b03e9d50
commit
cd59704f8d
@ -1867,7 +1867,6 @@ void AudioProcessingImpl::InitializeGainController1() {
|
||||
|
||||
submodules_.gain_control->Initialize(num_proc_channels(),
|
||||
proc_sample_rate_hz());
|
||||
|
||||
if (!config_.gain_controller1.analog_gain_controller.enabled) {
|
||||
int error = submodules_.gain_control->set_mode(
|
||||
Agc1ConfigModeToInterfaceMode(config_.gain_controller1.mode));
|
||||
@ -1881,9 +1880,10 @@ void AudioProcessingImpl::InitializeGainController1() {
|
||||
error = submodules_.gain_control->enable_limiter(
|
||||
config_.gain_controller1.enable_limiter);
|
||||
RTC_DCHECK_EQ(kNoError, error);
|
||||
constexpr int kAnalogLevelMinimum = 0;
|
||||
constexpr int kAnalogLevelMaximum = 255;
|
||||
error = submodules_.gain_control->set_analog_level_limits(
|
||||
config_.gain_controller1.analog_level_minimum,
|
||||
config_.gain_controller1.analog_level_maximum);
|
||||
kAnalogLevelMinimum, kAnalogLevelMaximum);
|
||||
RTC_DCHECK_EQ(kNoError, error);
|
||||
|
||||
submodules_.agc_manager.reset();
|
||||
|
||||
Reference in New Issue
Block a user