public MixerControl GetControlByType(MIXERCONTROL_CONTROLTYPE type) { foreach(MixerControl mixerControl in this.InnerList) if (mixerControl.Type == type) return mixerControl; return null; }
public MixerControl GetControlByType(MIXERCONTROL_CONTROLTYPE type) { foreach (MixerControl mixerControl in this.InnerList) { if (mixerControl.Type == type) { return(mixerControl); } } return(null); }
private AudioLineControl GetControlByType(MIXERCONTROL_CONTROLTYPE type) { foreach (var control in Controls) { if (control.ControlType == type) { return(control); } } return(null); }