Navigation
API > API/Runtime > API/Runtime/Media
Inheritance Hierarchy
- IMediaAudioSample
- FMediaIOCoreAudioSampleBase
- FWebMMediaAudioSample
References
| Module | Media |
| Header | /Engine/Source/Runtime/Media/Public/IMediaAudioSample.h |
| Include | #include "IMediaAudioSample.h" |
Syntax
class IMediaAudioSample
Remarks
Interface for media audio samples.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| 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). | |
| TOptional< FTimecode > | GetTimecode () |
Get the sample timecode if available. |