summaryrefslogtreecommitdiff
path: root/chromium/media/webrtc/webrtc_features.cc
blob: 0df461c4972ee8c48326cd626ed8b577e99c47ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/webrtc/webrtc_features.h"

#include "base/command_line.h"
#include "build/build_config.h"

namespace features {
namespace {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
constexpr base::FeatureState kWebRtcHybridAgcState =
    base::FEATURE_ENABLED_BY_DEFAULT;
#else
constexpr base::FeatureState kWebRtcHybridAgcState =
    base::FEATURE_DISABLED_BY_DEFAULT;
#endif
}  // namespace

#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
    BUILDFLAG(IS_CHROMEOS)
constexpr base::FeatureState kWebRtcAnalogAgcClippingControlState =
    base::FEATURE_ENABLED_BY_DEFAULT;
#else
constexpr base::FeatureState kWebRtcAnalogAgcClippingControlState =
    base::FEATURE_DISABLED_BY_DEFAULT;
#endif

// When enabled we will tell WebRTC that we want to use the
// Windows.Graphics.Capture API based DesktopCapturer, if it is available.
BASE_FEATURE(kWebRtcAllowWgcDesktopCapturer,
             "AllowWgcDesktopCapturer",
             base::FEATURE_DISABLED_BY_DEFAULT);

// Kill-switch allowing deactivation of the support for 48 kHz internal
// processing in the WebRTC audio processing module when running on an ARM
// platform.
BASE_FEATURE(kWebRtcAllow48kHzProcessingOnArm,
             "WebRtcAllow48kHzProcessingOnArm",
             base::FEATURE_ENABLED_BY_DEFAULT);

// Enables the WebRTC Hybrid AGC configuration - i.e., AGC1 analog and AGC2
// digital (see http://crbug.com/1231085).
BASE_FEATURE(kWebRtcHybridAgc, "WebRtcHybridAgc", kWebRtcHybridAgcState);

// Enables and configures the clipping control in the WebRTC analog AGC.
BASE_FEATURE(kWebRtcAnalogAgcClippingControl,
             "WebRtcAnalogAgcClippingControl",
             kWebRtcAnalogAgcClippingControlState);

// Enables the override for the default minimum starting volume of the Automatic
// Gain Control algorithm in WebRTC.
BASE_FEATURE(kWebRtcAnalogAgcStartupMinVolume,
             "WebRtcAnalogAgcStartupMinVolume",
             base::FEATURE_DISABLED_BY_DEFAULT);

}  // namespace features