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