FWebMMediaAudioSample

Implements a media audio sample for WebMMedia.

Windows
MacOS
Linux

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

Name Description

Public function

FWebMMediaAudioSample()

Default constructor.

Destructors

Name Description

Public function Virtual

~FWebMMediaAudioSample()

Virtual destructor.

Functions

Name Description

Public function Const

const TArray...

 

GetDataBuffer()

Public function

void

 

Initialize

(
    const uint8* InBuffer,
    uint32 InSize,
    uint32 InChannels,
    uint32 InSampleRate,
    FTimespan InTime,
    FTimespan InDuration
)

Initialize the sample.

Overridden from IMediaAudioSample

Name Description

Public function Virtual

const void &...

 

GetBuffer()

Get the sample data.

The returned buffer is only valid for the life time of this sample.

Public function Virtual Const

uint32

 

GetChannels()

Get the sample's number of channels.

Public function Virtual Const

FTimespan

 

GetDuration()

Get the amount of time for which the sample is valid.

Public function Virtual Const

EMediaAudioS...

 

GetFormat()

Get the audio sample format.

Public function Virtual Const

uint32

 

GetFrames()

Get the number of frames in the buffer.

A frame consists of one sample value per channel.

Public function Virtual Const

uint32

 

GetSampleRate()

Get the sample's sampling rate (in audio frames per second).

Public function Virtual Const

FMediaTimeSt...

 

GetTime()

Get the sample time (in the player's local clock).

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