engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMediaAudioSample类 参考abstract

Interface for media audio samples. 更多...

#include <IMediaAudioSample.h>

Public 成员函数

virtual const void * GetBuffer ()=0
 Get the sample data. 更多...
 
virtual uint32 GetChannels () const =0
 Get the sample's number of channels. 更多...
 
virtual FTimespan GetDuration () const =0
 Get the amount of time for which the sample is valid. 更多...
 
virtual EMediaAudioSampleFormat GetFormat () const =0
 Get the audio sample format. 更多...
 
virtual uint32 GetFrames () const =0
 Get the number of frames in the buffer. 更多...
 
virtual uint32 GetSampleRate () const =0
 Get the sample's sampling rate (in audio frames per second). 更多...
 
virtual FMediaTimeStamp GetTime () const =0
 Get the sample time (in the player's local clock). 更多...
 
virtual TOptional< FTimecode > GetTimecode () const
 Get the sample timecode if available. 更多...
 
virtual ~IMediaAudioSample ()
 Virtual destructor.
 

详细描述

Interface for media audio samples.

成员函数说明

◆ GetBuffer()

virtual const void * IMediaAudioSample::GetBuffer ( )
pure virtual

Get the sample data.

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

返回
Pointer to data buffer.
参见
GetChannels, GetDuration, GetFormat, GetFrames, GetRate, GetTime

◆ GetChannels()

virtual uint32 IMediaAudioSample::GetChannels ( ) const
pure virtual

Get the sample's number of channels.

返回
Number of channels.
参见
GetBuffer, GetDuration, GetFormat, GetFrames, GetRate, GetTime

◆ GetDuration()

virtual FTimespan IMediaAudioSample::GetDuration ( ) const
pure virtual

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.

返回
Sample duration.
参见
GetBuffer, GetChannels, GetFormat, GetFrames, GetRate, GetTime

◆ GetFormat()

virtual EMediaAudioSampleFormat IMediaAudioSample::GetFormat ( ) const
pure virtual

Get the audio sample format.

返回
Sample type.
参见
GetBuffer, GetChannels, GetDuration, GetFrames, GetRate, GetTime

◆ GetFrames()

virtual uint32 IMediaAudioSample::GetFrames ( ) const
pure virtual

Get the number of frames in the buffer.

A frame consists of one sample value per channel.

返回
Frame count.
参见
GetBuffer, GetChannels, GetDuration, GetFormat, GetRate, GetTime

◆ GetSampleRate()

virtual uint32 IMediaAudioSample::GetSampleRate ( ) const
pure virtual

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

返回
Sample rate, i.e. 44100 Hz.
参见
GetBuffer, GetChannels, GetDuration, GetFormat, GetFrames, GetTime

◆ GetTime()

virtual FMediaTimeStamp IMediaAudioSample::GetTime ( ) const
pure virtual

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

This value is used primarily for debugging purposes.

返回
Sample time.
参见
GetBuffer, GetChannels, GetDuration, GetFormat, GetFrames, GetSampleRate

◆ GetTimecode()

virtual TOptional< FTimecode > IMediaAudioSample::GetTimecode ( ) const
inlinevirtual

Get the sample timecode if available.

返回
Sample timecode.
参见
GetTime

该类的文档由以下文件生成: