/// <summary> /// Frees all resources used by this object. /// </summary> public void Dispose() { lock (_syncLock) { _writer.Close(); _writer = null; _videoStream = null; _audioStream = null; } _videoBuffer = null; }
/// <summary> /// Frees all resources used by this object. /// </summary> public void Dispose() { _writer?.Close(); }
/// <summary> /// Frees all resources used by this object. /// </summary> public void Dispose() { _writer?.Close(); _audioProvider?.Dispose(); }