Example #1
0
        public MixerLine GetMixerFirstLineByComponentType(MIXERLINE_COMPONENTTYPE componentType)
        {
            foreach(MixerLine mixerLine in this.InnerList)
                if (mixerLine.ComponentType == componentType)
                    return mixerLine;

            return null;
        }
Example #2
0
 public MixerLine()
 {
     mName          = "";
     mComponentType = (MIXERLINE_COMPONENTTYPE)(-1);
     mChannel       = Channel.Uniform;
     unchecked
     {
         mId = (uint)-1;
     }
 }
Example #3
0
		public MixerLine()
		{
			mName			= "";
			mComponentType	= (MIXERLINE_COMPONENTTYPE) (-1);
			mChannel		= Channel.Uniform;
			unchecked
			{
				mId			= (uint) -1;
			}
		}
Example #4
0
        public MixerLine GetMixerFirstLineByComponentType(MIXERLINE_COMPONENTTYPE componentType)
        {
            foreach (MixerLine mixerLine in this.InnerList)
            {
                if (mixerLine.ComponentType == componentType)
                {
                    return(mixerLine);
                }
            }

            return(null);
        }
Example #5
0
        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);
        }