public void Dispose() { if (stream != null) { stream.Dispose(); stream = null; } }
public MidiPlayer(string soundFontPath) { stream = new MidiSoundStream(soundFontPath, 44100); }