using VocaluxeLib.Draw; namespace VocaluxeLib { public class CVideoStream { public int ID { get; private set; } public CTextureRef Texture; /// The actual position in s of the returned frame. Should be ~ time+VideoGap public float VideoTime; public CVideoStream(int id) { ID = id; } ~CVideoStream() { if (ID >= 0) { CVideoStream tmp = this; CBase.Video.Close(ref tmp); } } /// /// Should only be used by video decoders
/// Set's this stream to closed state and frees the texture ///
public void SetClosed() { ID = -1; CBase.Drawing.RemoveTexture(ref Texture); } /// /// Returns true if the video stream is closed /// /// public bool IsClosed() { return ID < 0; } } }