Esempio n. 1
0
 void ExecuteButtonCommand()
 {
     if (deviceSettings.IsInitialized)
     {
         mainSynthesizer.Stop();
         deviceSettings.DisposeOutput();
     }
     else
     {
         deviceSettings.Initialize(SelectedDevice);
         mainSynthesizer.Play(deviceSettings.Output);
     }
 }
Esempio n. 2
0
 public void Dispose()
 {
     mainSynthesizer.Intercepted -= Synthesizer_Intercepted;
     mainSynthesizer.Stop();
     deviceSettings.DisposeOutput();
 }