private void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing) { _matrix3x4 = null; } if (_objectTransformationPtr.Handle != System.IntPtr.Zero) { NativeAudioSystem.ReleaseAudioTransformation(_objectTransformationPtr.Handle); _objectTransformationPtr = new System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero); } _isDisposed = true; }