54 virtual void Init(
size_t frameSize, uint64_t maxFrameCount) = 0;
59 virtual void Reset() = 0;
virtual const uint8_t * CurrentFrame() const =0
Get a pointer to the current frame.
virtual uint64_t MaxFrameCount() const =0
Return the current max frame count.
virtual uint64_t GetFrameCounter() const =0
Get the total number of frames played until the current frame.
virtual void SubmitFrame()=0
Indicate that a frame of size FrameSize() has been written to the location returned from BeginFrame()...
virtual uint8_t * BeginFrame()=0
Definition: AudioDecoder.h:18
virtual void SetFrameCounter(uint64_t frameCount)=0
Set the total number of frames played until the current frame.
virtual uint64_t PastFramesAvailable() const =0
Return the number of frames behind the current frame.
virtual void SetMaxFrameCount(uint64_t maxFrameCount)=0
Update the max frame count.
virtual void Init(size_t frameSize, uint64_t maxFrameCount)=0
Initialize memory stream.
Stream of serialized states from game clients.
Definition: IMemoryStream.h:43
virtual uint64_t RewindFrames(uint64_t frameCount)=0
Seek backwards the specified number of frames.
virtual size_t FrameSize() const =0
Return the frame size passed to Init()
virtual uint64_t FutureFramesAvailable() const =0
Return the number of frames ahead of the current frame.
virtual uint64_t AdvanceFrames(uint64_t frameCount)=0
Seek ahead the specified number of frames.
virtual void Reset()=0
Free any resources used by this stream.