| Index: content/renderer/media/media_stream_audio_processor_options.cc
|
| diff --git a/content/renderer/media/media_stream_audio_processor_options.cc b/content/renderer/media/media_stream_audio_processor_options.cc
|
| index 1f875f9525e0d89317c614bd20c6ec6dd659cbae..5c61a055cc47fd2e1bc014e2e385ad4af4710c9d 100644
|
| --- a/content/renderer/media/media_stream_audio_processor_options.cc
|
| +++ b/content/renderer/media/media_stream_audio_processor_options.cc
|
| @@ -66,19 +66,9 @@ struct {
|
| { MediaAudioConstraints::kGoogTypingNoiseDetection, true },
|
| { MediaAudioConstraints::kGoogExperimentalNoiseSuppression, false },
|
| { MediaAudioConstraints::kGoogBeamforming, false },
|
| -#if defined(OS_WIN)
|
| - { kMediaStreamAudioDucking, true },
|
| -#else
|
| - { kMediaStreamAudioDucking, false },
|
| -#endif
|
| { kMediaStreamAudioHotword, false },
|
| };
|
|
|
| -bool IsAudioProcessingConstraint(const std::string& key) {
|
| - // |kMediaStreamAudioDucking| does not require audio processing.
|
| - return key != kMediaStreamAudioDucking;
|
| -}
|
| -
|
| // Used to log echo quality based on delay estimates.
|
| enum DelayBasedEchoQuality {
|
| DELAY_BASED_ECHO_QUALITY_GOOD = 0,
|
| @@ -213,11 +203,7 @@ bool MediaAudioConstraints::IsValid() const {
|
| bool MediaAudioConstraints::GetDefaultValueForConstraint(
|
| const blink::WebMediaConstraints& constraints,
|
| const std::string& key) const {
|
| - // |kMediaStreamAudioDucking| is not restricted by
|
| - // |default_audio_processing_constraint_value_| since it does not require
|
| - // audio processing.
|
| - if (!default_audio_processing_constraint_value_ &&
|
| - IsAudioProcessingConstraint(key))
|
| + if (!default_audio_processing_constraint_value_)
|
| return false;
|
|
|
| for (size_t i = 0; i < arraysize(kDefaultAudioConstraints); ++i) {
|
|
|