Audio format structure
The audio format structure that fully defines a stream's audio information.
With the help of this format information, Kodi adjusts its processing accordingly.
The following table contains values that can be set with class AudioEngineFormat :
Further is CompareFormat included to compare this class with another.
◆ SetDataFormat()
The stream's data format (eg, AUDIOENGINE_FMT_S16LE)
◆ GetDataFormat()
◆ SetSampleRate()
void SetSampleRate |
( |
unsigned int |
rate | ) |
|
|
inline |
The stream's sample rate (eg, 48000)
◆ GetSampleRate()
unsigned int GetSampleRate |
( |
| ) |
const |
|
inline |
◆ SetEncodedRate()
void SetEncodedRate |
( |
unsigned int |
rate | ) |
|
|
inline |
The encoded streams sample rate if a bitstream, otherwise undefined.
◆ GetEncodedRate()
unsigned int GetEncodedRate |
( |
| ) |
const |
|
inline |
◆ SetChannelLayout()
The stream's channel layout.
◆ GetChannelLayout()
◆ SetFramesAmount()
void SetFramesAmount |
( |
unsigned int |
frames | ) |
|
|
inline |
The number of frames per period.
◆ GetFramesAmount()
unsigned int GetFramesAmount |
( |
| ) |
const |
|
inline |
◆ SetFrameSize()
void SetFrameSize |
( |
unsigned int |
frameSize | ) |
|
|
inline |
The size of one frame in bytes.
◆ GetFrameSize()
unsigned int GetFrameSize |
( |
| ) |
const |
|
inline |
◆ CompareFormat()
Function to compare the format structure with another.