Navigation
Unreal Engine C++ API Reference > Plugins > WebMMedia
Inheritance Hierarchy
- IMediaAudioSample
- IMediaPoolable
- FWebMMediaAudioSample
References
Module | WebMMedia |
Header | /Engine/Plugins/Media/WebMMedia/Source/WebMMedia/Public/WebMMediaAudioSample.h |
Include | #include "WebMMediaAudioSample.h" |
Syntax
class FWebMMediaAudioSample :
public IMediaAudioSample,
public IMediaPoolable
Remarks
Implements a media audio sample for WebMMedia.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Virtual destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const TArray< uint8 > & | ||
![]() |
void | Initialize
(
const uint8* InBuffer, |
Initialize the sample. |
Overridden from IMediaAudioSample
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const void * | GetBuffer () |
Get the sample data.The returned buffer is only valid for the life time of this sample. |
![]() ![]() ![]() |
uint32 | GetChannels () |
Get the sample's number of channels. |
![]() ![]() ![]() |
FTimespan | GetDuration () |
Get the amount of time for which the sample is valid. |
![]() ![]() ![]() |
EMediaAudioSampleFormat | GetFormat () |
Get the audio sample format. |
![]() ![]() ![]() |
uint32 | GetFrames () |
Get the number of frames in the buffer.A frame consists of one sample value per channel. |
![]() ![]() ![]() |
uint32 | Get the sample's sampling rate (in audio frames per second). | |
![]() ![]() ![]() |
FMediaTimeStamp | GetTime () |
Get the sample time (in the player's local clock). |