private void Dispose(bool isDisposing) { if (_isDisposed) { return; } if (isDisposing) { _audioTransformation.Dispose(); _audioTransformation = null; } if (_cPtr.Handle != System.IntPtr.Zero) { NativeAudioSystem.ReleaseAudioObject(_cPtr.Handle); _cPtr = new System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero); } _isDisposed = true; }