I am creating a user control which will support all functionality like we can enable,disable, Mute audio capture device also we can change audio capture device volume..etc. and it should be synchronized with windows audio settings dialog (Mixer
Please check following code. using this i am only getting volume and mute value. but how to check whether audio device is disabled or enabled.
foreach (var control in mixerline.Controls)
var audioControl = control as NAudio.Mixer.UnsignedMixerControl;
if (audioControl != null)
_volume = (int)audioControl.Percent;
var audioControl1 = control as NAudio.Mixer.BooleanMixerControl;
if (audioControl1 != null)
_isMute = audioControl1.Value;
Thanks in advanced.