private void CloseInStream() { if (inStream != null) { inStream.Dispose(); inStream = null; } }
public void LoadFile(string path) { CloseWaveOut(); CloseInStream(); inStream = new TrimWaveStream(new WaveFileReader(path)); }