![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IMediaAudioSample.h>
Public Member Functions | |
| virtual const void * | GetBuffer ()=0 |
| virtual uint32 | GetChannels () const =0 |
| virtual FTimespan | GetDuration () const =0 |
| virtual EMediaAudioSampleFormat | GetFormat () const =0 |
| virtual uint32 | GetFrames () const =0 |
| virtual uint32 | GetSampleRate () const =0 |
| virtual FMediaTimeStamp | GetTime () const =0 |
| virtual TOptional< FTimecode > | GetTimecode () const |
| virtual | ~IMediaAudioSample () |
Interface for media audio samples.
|
inlinevirtual |
Virtual destructor.
Get the sample data.
The returned buffer is only valid for the life time of this sample.
Get the sample's number of channels.
Get the amount of time for which the sample is valid.
A duration of zero indicates that the sample is valid until the timecode of the next sample in the queue.
|
pure virtual |
Get the audio sample format.
Get the number of frames in the buffer.
A frame consists of one sample value per channel.
Get the sample's sampling rate (in audio frames per second).
|
pure virtual |
Get the sample time (in the player's local clock).
This value is used primarily for debugging purposes.