Update APM config on RuntimeSetting pre amplifier gain change

Bug: webrtc:11045
Change-Id: I78c777632a46e1f8ebf96f4a64c4e1738184d350
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/158081
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29586}
This commit is contained in:
Sam Zackrisson 2019-10-23 09:43:01 +02:00 committed by Commit Bot
parent 4f178d08de
commit 21bfa401dd

View File

@ -944,6 +944,7 @@ void AudioProcessingImpl::HandleCaptureRuntimeSettings() {
if (config_.pre_amplifier.enabled) {
float value;
setting.GetFloat(&value);
config_.pre_amplifier.fixed_gain_factor = value;
submodules_.pre_amplifier->SetGainFactor(value);
}
// TODO(bugs.chromium.org/9138): Log setting handling by Aec Dump.