private void Button_Click_DSP(object sender, RoutedEventArgs e)
{
if (!DSPEnabled.IsChecked.Value) // is checked has already been updated so check for false
{
var result = MessageBox.Show("This will turn off the Microcone signal processing. Only do this if you want to access the raw microphone signals.\n\nDo you wish to proceed?", "Warning", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No);
if (result == MessageBoxResult.No)
{
DSPEnabled.IsChecked = true;
return;
}
}
try
{
if (_clientId > 0)
{
MicroconeAPI.SetDspEnabled(_clientId, DSPEnabled.IsChecked.Value ? 1 : 0);
}
UpdateSettings();
}
catch { }
}