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