This project has moved. For the latest updates, please go here.

How to get notification about Wave In Device disabled or enabled at run time.

Jan 4, 2013 at 9:40 AM
Edited Jan 9, 2013 at 12:53 PM


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 settings)

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.