electron音频处理开关

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章