예제 #1
0
        private void comboBoxSoundOutput_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (sender is ComboBox combo)
            {
                if (combo.SelectedItem is SoundSettings.EOutput output)
                {
                    if (!_settingInternally)
                    {
                        _soundSettings.output = output;
                        ActivateSoundDevice(GetSoundDevice(_soundSettings.output));
                    }

                    // Enable Partials textbox for Wave
                    bool partialsTempered = _soundSettings.output == SoundSettings.EOutput.WavePartialsTempered;
                    //_textBoxWavePartials.IsEnabled = partialsTempered;

                    // Update drawer
                    _gridDrawer.SetPartials(partialsTempered ? new Rational[] { } : null);
                    InvalidateView();
                }
            }
        }