Esempio n. 1
0
 static WasapiSoundCapture()
 {
     Settings.Model.PropertyChanged += (s, e) =>
     {
         if (e.PropertyName == nameof(Settings.Model.Audio))
         {
             if (Settings.Model.Audio)
             {
                 WasapiSoundCapture.Start();
             }
             else
             {
                 WasapiSoundCapture.Stop();
             }
         }
     };
 }