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