Beispiel #1
0
        public void Remove(MixerDetail mixer)
        {
            if (this.InnerList.Contains(mixer))
            {
                this.InnerList.Remove(mixer);
                return;
            }

            MixerDetail mixerDetailToRemove = null;

            foreach (MixerDetail mixerDetail in this.InnerList)
            {
                if (mixerDetail.DeviceId == mixer.DeviceId &&
                    mixerDetail.MixerName == mixer.MixerName)
                {
                    mixerDetailToRemove = mixerDetail;
                    break;
                }
            }

            if (mixerDetailToRemove != null)
            {
                this.InnerList.Remove(mixerDetailToRemove);
            }
        }
        public bool Contains(MixerDetail detail)
        {
            foreach(MixerDetail mixerDetail in this.InnerList)
                if (mixerDetail == detail)
                    return true;

            return false;
        }
Beispiel #3
0
        public bool     Contains(MixerDetail detail)
        {
            foreach (MixerDetail mixerDetail in this.InnerList)
            {
                if (mixerDetail == detail)
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #4
0
		public void Remove(MixerDetail mixer)
		{
			if (this.InnerList.Contains(mixer))
			{
				this.InnerList.Remove(mixer);
				return;
			}
			
			MixerDetail mixerDetailToRemove = null;
			foreach(MixerDetail mixerDetail in this.InnerList)
			{
				if (mixerDetail.DeviceId  == mixer.DeviceId &&
					mixerDetail.MixerName == mixer.MixerName)
				{
					mixerDetailToRemove = mixerDetail;
					break;
				}
			}
			
			if (mixerDetailToRemove != null)
				this.InnerList.Remove(mixerDetailToRemove);
		}
Beispiel #5
0
        private void LoadDeviceCombos(Mixers mixers)
        {
            //Load Output Combo
            MixerDetail mixerDetailDefault = new MixerDetail();
            mixerDetailDefault.DeviceId = -1;
            mixerDetailDefault.MixerName = "Default";
            mixerDetailDefault.SupportWaveOut = true;
            comboBoxPlaybackDevices.Items.Add(mixerDetailDefault);
            foreach (MixerDetail mixerDetail in mixers.Playback.Devices)
            {
                comboBoxPlaybackDevices.Items.Add(mixerDetail);
            }
            comboBoxPlaybackDevices.SelectedIndex = Settings.Default.SelectedPlaybackDevice;

            //Load Ring Combo
            mixerDetailDefault = new MixerDetail();
            mixerDetailDefault.DeviceId = -1;
            mixerDetailDefault.MixerName = "Default";
            mixerDetailDefault.SupportWaveOut = true;
            comboBoxRingDevices.Items.Add(mixerDetailDefault);
            foreach (MixerDetail mixerDetail in mixers.Playback.Devices)
            {
                comboBoxRingDevices.Items.Add(mixerDetail);
            }
            comboBoxRingDevices.SelectedIndex = Settings.Default.SelectedRingDevice;

            //Load Input Combo
            mixerDetailDefault = new MixerDetail();
            mixerDetailDefault.DeviceId = -1;
            mixerDetailDefault.MixerName = "Default";
            mixerDetailDefault.SupportWaveIn = true;
            comboBoxRecordingDevices.Items.Add(mixerDetailDefault);
            foreach (MixerDetail mixerDetail in mixers.Recording.Devices)
            {
                comboBoxRecordingDevices.Items.Add(mixerDetail);
            }
            comboBoxRecordingDevices.SelectedIndex = Settings.Default.SelectedRecordingDevice;
        }
Beispiel #6
0
 public void Add(MixerDetail mixer)
 {
     this.InnerList.Add(mixer);
 }
Beispiel #7
0
		private void LoadComboSettings()
		{
			//Load Output Combo
			MixerDetail mixerDetailDefault		= new MixerDetail();
			mixerDetailDefault.DeviceId			= -1;
			mixerDetailDefault.MixerName		= "Default";
			mixerDetailDefault.SupportWaveOut	= true;
			cboOutputDevices.Items.Add(mixerDetailDefault);

			foreach(MixerDetail mixerDetail in mMixers.Playback.Devices)
				cboOutputDevices.Items.Add(mixerDetail);
			cboOutputDevices.SelectedIndex = 0;

			//Load Input Combo
			mixerDetailDefault					= new MixerDetail();
			mixerDetailDefault.DeviceId			= -1;
			mixerDetailDefault.MixerName		= "Default";
			mixerDetailDefault.SupportWaveIn	= true;
			cboInputDevices.Items.Add(mixerDetailDefault);

			foreach(MixerDetail mixerDetail in mMixers.Recording.Devices)
				cboInputDevices.Items.Add(mixerDetail);
			cboInputDevices.SelectedIndex = 0;
		}
        private void LoadDeviceCombos(Mixers mixers)
        {
            //Load Output Combo
            MixerDetail mixerDetailDefault = new MixerDetail();
            mixerDetailDefault.DeviceId = -1;
            mixerDetailDefault.MixerName = "Default";
            mixerDetailDefault.SupportWaveOut = true;
            comboBoxPlaybackDevices.Items.Add(mixerDetailDefault);
            foreach (MixerDetail mixerDetail in mixers.Playback.Devices)
            {
                comboBoxPlaybackDevices.Items.Add(mixerDetail);
            }
            //comboBoxPlaybackDevices.SelectedIndex = 0;
            comboBoxPlaybackDevices.Text = Globals.Cnf.audioPlay;

            //Load Input Combo
            mixerDetailDefault = new MixerDetail();
            mixerDetailDefault.DeviceId = -1;
            mixerDetailDefault.MixerName = "Default";
            mixerDetailDefault.SupportWaveIn = true;
            comboBoxRecordingDevices.Items.Add(mixerDetailDefault);
            foreach (MixerDetail mixerDetail in mixers.Recording.Devices)
            {
                comboBoxRecordingDevices.Items.Add(mixerDetail);
            }
            //comboBoxRecordingDevices.SelectedIndex = 0;
            comboBoxRecordingDevices.Text = Globals.Cnf.audioRec;
        }
 public void Add(MixerDetail mixer)
 {
     this.InnerList.Add(mixer);
 }