示例#1
0
        /// <summary>
        /// Frees all resources used by this object.
        /// </summary>
        public void Dispose()
        {
            lock (_syncLock)
            {
                _writer.Close();
                _writer = null;

                _videoStream = null;
                _audioStream = null;
            }

            _videoBuffer = null;
        }
示例#2
0
 /// <summary>
 /// Frees all resources used by this object.
 /// </summary>
 public void Dispose()
 {
     _writer?.Close();
 }
示例#3
0
        /// <summary>
        /// Frees all resources used by this object.
        /// </summary>
        public void Dispose()
        {
            _writer?.Close();

            _audioProvider?.Dispose();
        }