src/media/webrtc/webrtc_switches.h
namespace switches {
COMPONENT_EXPORT(MEDIA_WEBRTC) extern const char kAgcStartupMinVolume[];
} // namespace switches
namespace features {
COMPONENT_EXPORT(MEDIA_WEBRTC)
extern const base::Feature kWebRtcApmInAudioService;
COMPONENT_EXPORT(MEDIA_WEBRTC)
extern const base::Feature kWebRtcEnableCaptureMultiChannelApm;
COMPONENT_EXPORT(MEDIA_WEBRTC)
extern const base::Feature kWebRtcHybridAgc;
} // namespace features
namespace switches {
COMPONENT_EXPORT(MEDIA_WEBRTC)
extern const char kForceDisableWebRtcApmInAudioService[];
} // namespace switches
namespace media {
COMPONENT_EXPORT(MEDIA_WEBRTC) bool IsWebRtcApmInAudioServiceEnabled();
} // namespace media
#endif
src/media/webrtc/webrtc_switches.cc
namespace switches {
// 开关用来决定是否覆盖默认的起始音量,getUserMedia接口获取的WebRTC自动增益音量范围
// 在12-255之间。如果数值超范围会被收敛到该区间内。
const char kAgcStartupMinVolume[] = "a