예제 #1
0
 public void Dispose()
 {
     if (UtilityAudio.PlaybackDevice != null)
     {
         UtilityAudio.Dispose();
     }
 }
예제 #2
0
 void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     if (midiIn != null)
     {
         midiIn.Dispose();
         midiIn = null;
     }
     if (midiOut != null)
     {
         midiOut.Dispose();
         midiOut = null;
     }
     if (vstForm != null)
     {
         vstForm.Dispose();
         vstForm = null;
     }
     UtilityAudio.Dispose();
 }