Ejemplo n.º 1
0
        private void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (isDisposing)
            {
                _audioFilePath = null;
            }
            if (_audioPlayFileInfoPtr.Handle != System.IntPtr.Zero)
            {
                NativeAudioSystem.ReleaseSPlayFileInfo(_audioPlayFileInfoPtr.Handle);
                _audioPlayFileInfoPtr = new System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
            }
            _isDisposed = true;
        }