protected virtual new void Dispose(bool isDisposing) { base.Dispose(isDisposing); if (_isDisposed) { return; } if (isDisposing) { if (_sampleSource != null) { _sampleSource.Dispose(); _sampleSource = null; } if (_soundTouch != null) { _soundTouch.Dispose(); _soundTouch = null; } } _isDisposed = true; }
public void Dispose() { if (audiostream != null) { audiostream.Dispose(); } }
public void Dispose() { if (mSource != null) { mSource.Dispose(); } }
public void CloseWaveFile() { StopPlaying(); mFilename = ""; progress.Visible = true; hrScroll.Enabled = false; cursorTimer.Enabled = false; playTimer.Enabled = false; mDrawWave = false; mSamplesPerPixel = 0; mSelectionStartX = 0; mSelectionEndX = 0; mSelectionStartSample = 0; mSelectionEndSample = 0; mPrevX = 0; mDrawingStartOffset = 0; CursorPositionX = 0; mPrevWidth = 0; mPrevHeight = 0; mPrevOffset = 0; mPrevSamplesPerPixel = 0; if (mWaveSource != null) { mWaveSource.Dispose(); } mWaveSource = null; if (mDrawSource != null) { mDrawSource.Dispose(); } mDrawSource = null; if (mBitmap != null) { mBitmap.Dispose(); } mBitmap = null; String timeZero = "00:00:00.00"; lblCursorPos.Text = timeZero; lblSelectStartPos.Text = timeZero; lblSelectEndPos.Text = timeZero; lblSelectLength.Text = timeZero; if (mRawDrawReader != null) { mRawDrawReader.Dispose(); } if (mRawPlayReader != null) { mRawPlayReader.Dispose(); } if (System.IO.File.Exists(mRawFileName)) { System.IO.File.Delete(mRawFileName); } }
public override void Dispose() { if (_decoder != null) { _decoder.Dispose(); _decoder = null; } if (_waveSource != null) { _waveSource.Dispose(); _waveSource = null; } }
public void Dispose() { if (!disposed) { if (source != null) { source.Dispose(); } } else { // TODO: Why does this happen? //throw new ObjectDisposedException("WdlResamplingSampleProvider"); } disposed = true; }
public void Dispose() { if (_waveSource != null) { _waveSource.Dispose(); _waveSource = null; } if (_soundOut != null) { _soundOut.Dispose(); _soundOut = null; } if (_sampleSource != null) { _sampleSource.Dispose(); _sampleSource = null; } }
protected virtual void Dispose(bool disposing) { _source.Dispose(); }
/// <summary> /// Disposes the underlying <see cref="Source"/>. /// </summary> /// <param name="disposing">Not used.</param> protected virtual void Dispose(bool disposing) { Source.Dispose(); Buffer = null; }
public void Dispose() { _source.Dispose(); }