Reland "Replace the ExperimentalAgc config with the new config format"
This is a reland of f3aa6326b8e21f627b9fba72040122723251999b Original change's description: > Replace the ExperimentalAgc config with the new config format > > This CL replaces the use of the ExperimentalAgc config with > using the new config format. > > Beyond that, some further changes were made to how the analog > and digital AGCs are initialized/called. While these can be > made in a separate CL, I believe the code changes becomes more > clear by bundling those with the replacement of the > ExperimentalAgc config. > > TBR: saza@webrtc.org > Bug: webrtc:5298 > Change-Id: Ia19940f3abae048541e6716d0184b4caafc7d53e > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/163986 > Reviewed-by: Per Åhgren <peah@webrtc.org> > Commit-Queue: Per Åhgren <peah@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#30149} Bug: webrtc:5298 Change-Id: I6db03628ed3fa2ecd36544fe9181dd8244d7e2df Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165760 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30295}
This commit is contained in:
@ -180,11 +180,6 @@ void DebugDumpReplayer::MaybeRecreateApm(const audioproc::Config& msg) {
|
||||
// These configurations cannot be changed on the fly.
|
||||
Config config;
|
||||
RTC_CHECK(msg.has_aec_delay_agnostic_enabled());
|
||||
|
||||
RTC_CHECK(msg.has_noise_robust_agc_enabled());
|
||||
config.Set<ExperimentalAgc>(
|
||||
new ExperimentalAgc(msg.noise_robust_agc_enabled()));
|
||||
|
||||
RTC_CHECK(msg.has_aec_extended_filter_enabled());
|
||||
|
||||
// We only create APM once, since changes on these fields should not
|
||||
@ -235,6 +230,9 @@ void DebugDumpReplayer::ConfigureApm(const audioproc::Config& msg) {
|
||||
static_cast<AudioProcessing::Config::GainController1::Mode>(
|
||||
msg.agc_mode());
|
||||
apm_config.gain_controller1.enable_limiter = msg.agc_limiter_enabled();
|
||||
RTC_CHECK(msg.has_noise_robust_agc_enabled());
|
||||
apm_config.gain_controller1.analog_gain_controller.enabled =
|
||||
msg.noise_robust_agc_enabled();
|
||||
|
||||
apm_->ApplyConfig(apm_config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user