Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
kodi::audioengine::AudioEngineFormat Class Reference

#include <AudioEngine.h>

Inheritance diagram for kodi::audioengine::AudioEngineFormat:
kodi::addon::CStructHdl< AudioEngineFormat, AUDIO_ENGINE_FORMAT >

Public Member Functions

void SetDataFormat (enum AudioEngineDataFormat format)
 The stream's data format (eg, AUDIOENGINE_FMT_S16LE)
enum AudioEngineDataFormat GetDataFormat () const
 To get with SetDataFormat changed values.
void SetSampleRate (unsigned int rate)
 The stream's sample rate (eg, 48000)
unsigned int GetSampleRate () const
 To get with SetSampleRate changed values.
void SetEncodedRate (unsigned int rate)
 The encoded streams sample rate if a bitstream, otherwise undefined.
unsigned int GetEncodedRate () const
 To get with SetEncodedRate changed values.
void SetChannelLayout (const std::vector< enum AudioEngineChannel > &layout)
 The stream's channel layout.
std::vector< enum AudioEngineChannelGetChannelLayout () const
 To get with SetChannelLayout changed values.
void SetFramesAmount (unsigned int frames)
 The number of frames per period.
unsigned int GetFramesAmount () const
 To get with SetFramesAmount changed values.
void SetFrameSize (unsigned int frameSize)
 The size of one frame in bytes.
unsigned int GetFrameSize () const
 To get with SetFrameSize changed values.
bool CompareFormat (const AudioEngineFormat *fmt)
 Function to compare the format structure with another.
- Public Member Functions inherited from kodi::addon::CStructHdl< AudioEngineFormat, AUDIO_ENGINE_FORMAT >
 CStructHdl ()
 CStructHdl (const AudioEngineFormat &cppClass)
 CStructHdl (const AUDIO_ENGINE_FORMAT *cStructure)
 CStructHdl (AUDIO_ENGINE_FORMAT *cStructure)
const CStructHdloperator= (const CStructHdl &right)
const CStructHdloperator= (const AUDIO_ENGINE_FORMAT &right)
virtual ~CStructHdl ()
 operator AUDIO_ENGINE_FORMAT * ()
 operator const AUDIO_ENGINE_FORMAT * () const
const AUDIO_ENGINE_FORMATGetCStructure () const

Additional Inherited Members

- Protected Attributes inherited from kodi::addon::CStructHdl< AudioEngineFormat, AUDIO_ENGINE_FORMAT >

The documentation for this class was generated from the following file: