/// <summary> /// Initializes a new instance of the <see cref="DmoOutputDataBuffer"/> struct. /// </summary> /// <param name="bufferSize">The maxlength (in bytes) of the internally used <see cref="MediaBuffer"/>.</param> public DmoOutputDataBuffer(int bufferSize) { Buffer = new MONO.MediaBuffer(bufferSize); Status = OutputDataBufferFlags.None; Timestamp = 0; TimeLength = 0; }
/// <summary> /// Creates a new DmoOutputDataBuffer. /// </summary> /// <param name="bufferSize">The maxlength (in bytes) of the internally used MediaBuffer.</param> public DmoOutputDataBuffer(int bufferSize) { Buffer = new MediaBuffer(bufferSize); Status = OutputDataBufferFlags.None; Timestamp = 0; TimeLength = 0; }
/// <summary> /// Resets the Buffer. Sets the length of the <see cref="MediaBuffer"/> to zero and sets the /// <see cref="Status" /> to <see cref="OutputDataBufferFlags.None" />. /// </summary> public void Reset() { Buffer.SetLength(0); Status = OutputDataBufferFlags.None; }
/// <summary> /// Resets the Buffer. Sets the length of the MediaBuffer (see <see cref="MediaBuffer"/>) to zero and sets the <see cref="Status"/> to <see cref="OutputDataBufferFlags.None"/>. /// </summary> public void Reset() { Buffer.SetLength(0); Status = OutputDataBufferFlags.None; }