Esempio n. 1
0
 public bool SelectAudioSource()
 {
     if (_capture != null)
     {
         Form f = null;
         if (_previewWindow != null)
         {
             f = _previewWindow.FindForm();
         }
         try
         {
             DialogMakeSelection dlg = new DialogMakeSelection();
             dlg.LoadSources(_capture.AudioSources, _capture.AudioSource);
             if (dlg.ShowDialog(f) == DialogResult.OK)
             {
                 _capture.AudioSource = dlg.SelectedSource;
                 return(true);
             }
         }
         catch (Exception err)
         {
             processError("SelectAudioSource", err);
         }
     }
     return(false);
 }