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.
|
pure virtual |
Get the sample data.
The returned buffer is only valid for the life time of this sample.
|
pure virtual |
Get the sample's number of channels.
|
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.
|
pure virtual |
Get the audio sample format.
|
pure virtual |
Get the number of frames in the buffer.
A frame consists of one sample value per channel.
|
pure virtual |
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.