TMediaSampleQueue::Num

Get the number of samples in the queue.

Windows
MacOS
Linux

Override Hierarchy

TMediaSampleSink::Num()

TMediaSampleQueue::Num()

References

Module

MediaUtils

Header

/Engine/Source/Runtime/MediaUtils/Public/MediaSampleQueue.h

Include

#include "MediaSampleQueue.h"

Syntax

virtual int32 Num() const

Remarks

Get the number of samples in the queue.

Note: The value returned by this function is only eventually consistent. It can be called by both consumer and producer threads, but it should not be used to query the actual state of the queue. Always use Dequeue and Peek instead!

Returns

Number of samples.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss