public MixerLine GetMixerFirstLineByComponentType(MIXERLINE_COMPONENTTYPE componentType) { foreach(MixerLine mixerLine in this.InnerList) if (mixerLine.ComponentType == componentType) return mixerLine; return null; }
public MixerLine() { mName = ""; mComponentType = (MIXERLINE_COMPONENTTYPE)(-1); mChannel = Channel.Uniform; unchecked { mId = (uint)-1; } }
public MixerLine() { mName = ""; mComponentType = (MIXERLINE_COMPONENTTYPE) (-1); mChannel = Channel.Uniform; unchecked { mId = (uint) -1; } }
public MixerLine GetMixerFirstLineByComponentType(MIXERLINE_COMPONENTTYPE componentType) { foreach (MixerLine mixerLine in this.InnerList) { if (mixerLine.ComponentType == componentType) { return(mixerLine); } } return(null); }
public AudioDevice(Audio audio, AudioDeviceDescriptor deviceDescriptor) { _audio = audio; DeviceId = deviceDescriptor.DeviceId; Name = deviceDescriptor.Name; PlaybackSupport = deviceDescriptor.PlaybackSupport; RecordingSupport = deviceDescriptor.RecordingSupport; _componentType = deviceDescriptor.PlaybackSupport ? deviceDescriptor.PlaybackComponentType : deviceDescriptor.RecordingComponentType; Open(); DefaultLine.VolumeChanged += new Action <AudioLine>(DefaultLineVolumeChanged); DefaultLine.MuteChanged += new Action <AudioLine>(DefaultLineMuteChanged); }