| Index: content/renderer/media/media_stream_audio_processor.cc
|
| diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
|
| index 869e41670616676625bcd1c13c154da54d406906..23039de63c527bbc6d704f3489a0adcb08ba90bf 100644
|
| --- a/content/renderer/media/media_stream_audio_processor.cc
|
| +++ b/content/renderer/media/media_stream_audio_processor.cc
|
| @@ -111,6 +111,13 @@ bool GetStartupMinVolumeForAgc(int* startup_min_volume) {
|
| base::StringToInt(min_volume_str, startup_min_volume);
|
| }
|
|
|
| +// Checks if the AEC's refined adaptive filter tuning was enabled on the command
|
| +// line.
|
| +bool UseAecRefinedAdaptiveFilter() {
|
| + return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kAecRefinedAdaptiveFilter);
|
| +}
|
| +
|
| } // namespace
|
|
|
| // Wraps AudioBus to provide access to the array of channel pointers, since this
|
| @@ -516,6 +523,10 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule(
|
| config.Set<webrtc::ExperimentalNs>(
|
| new webrtc::ExperimentalNs(goog_experimental_ns));
|
| config.Set<webrtc::DelayAgnostic>(new webrtc::DelayAgnostic(true));
|
| + if (UseAecRefinedAdaptiveFilter()) {
|
| + config.Set<webrtc::RefinedAdaptiveFilter>(
|
| + new webrtc::RefinedAdaptiveFilter(true));
|
| + }
|
| if (goog_beamforming) {
|
| const auto& geometry =
|
| GetArrayGeometryPreferringConstraints(audio_constraints, input_params);
|
|
|