Beispiel #1
0
        private void SoundConfig_Load(object sender, EventArgs e)
        {
            SoundOnCheckBox.Checked  = Global.Config.SoundEnabled;
            MuteFrameAdvance.Checked = Global.Config.MuteFrameAdvance;
            ThrottlecheckBox.Checked = Global.Config.SoundThrottle;
            SoundVolBar.Value        = Global.Config.SoundVolume;
            SoundVolNumeric.Value    = Global.Config.SoundVolume;
            UpdateSoundDialog();

            // vestigal
            ThrottlecheckBox.Visible = false;


            var dd = SoundEnumeration.DeviceNames();

            listBoxSoundDevices.Items.Add("<default>");
            listBoxSoundDevices.SelectedIndex = 0;
            foreach (var d in dd)
            {
                listBoxSoundDevices.Items.Add(d);
                if (d == Global.Config.SoundDevice)
                {
                    listBoxSoundDevices.SelectedItem = d;
                }
            }
        }