示例#1
0
        public void setMicFeature(MicrophoneFeatures feature, bool enabled)
        {
            ResultCodes result = AccessoryHeadsetDriverHelper.SetMicrophoneFeatureEnable(currentHeadset, feature, enabled);

            if (checkErrors(result))
            {
                SetBoolRegistry(feature.ToString(), enabled);
            }
        }
示例#2
0
        private bool getMicFeature(MicrophoneFeatures micFeature)
        {
            bool enable = false;

            if (micFeature == MicrophoneFeatures.EnvironmentalNoiseCancellation)
            {
                enable = GetBoolRegistry(micFeature.ToString(), false);
            }
            else
            {
                ResultCodes result = AccessoryHeadsetDriverHelper.GetMicrophoneFeatureEnable(currentHeadset, micFeature, out enable);
                checkErrors(result);
            }
            return(enable);
        }