Beispiel #1
0
 private void ContentControlInputFormat_Loaded(object sender, RoutedEventArgs e)
 {
     ContentControlInputFormat.Children.Clear();
     if (Config != null)
     {
         var control = new WaveFormatControl(Config.Raw.InputFormat);
         ContentControlInputFormat.Children.Add(control);
     }
 }
Beispiel #2
0
 private void ContentControlWaveFormat_Loaded(object sender, RoutedEventArgs e)
 {
     ContentControlWaveFormat.Children.Clear();
     if (Config != null)
     {
         if (Config.Raw.OutputFormat is null)
         {
             Config.Raw.OutputFormat = Microsoft.Psi.Audio.WaveFormat.Create16kHz1Channel16BitPcm();
         }
         var control = new WaveFormatControl(Config.Raw.OutputFormat);
         ContentControlWaveFormat.Children.Add(control);
     }
 }