Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Audio engine functions
This interface contains auxiliary functions and classes which allow an addon to play their own individual audio stream in Kodi.
More...
Topics | |
Definitions, structures and enumerators | |
Library definition values All audio engine functions associated data structures. | |
class CAEStream | |
Audio Engine Stream Class Class that can be created by the addon in order to be able to transfer audiostream data processed on the addon to Kodi and output it audibly. | |
Functions | |
bool ATTR_DLL_LOCAL | kodi::audioengine::GetCurrentSinkFormat (AudioEngineFormat &format) |
Get the current sink data format. | |
Audio engine functions
This interface contains auxiliary functions and classes which allow an addon to play their own individual audio stream in Kodi.
Using kodi::audioengine::CAEStream, a class can be created in this regard, about which the necessary stream data and information are given to Kodi.
Via kodi::audioengine::GetCurrentSinkFormat(), the audio formats currently processed in Kodi can be called up beforehand in order to adapt your own stream to them.
However, the created stream can also differ from this because Kodi changes it to suit it.
Example:
It has the header #include <kodi/AudioEngine.h> be included to enjoy it.
|
inline |
Get the current sink data format.
[in] | format | Current sink data format. For more details see AudioEngineFormat. |
Example: