public void setMicFeature(MicrophoneFeatures feature, bool enabled) { ResultCodes result = AccessoryHeadsetDriverHelper.SetMicrophoneFeatureEnable(currentHeadset, feature, enabled); if (checkErrors(result)) { SetBoolRegistry(feature.ToString(), enabled); } }
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); }