Kodi Development  20.0
for Binary and Script based Add-Ons
CInstanceAudioDecoderabstract

Inherits IAddonInstance.

Public Member Functions

 CInstanceAudioDecoder (KODI_HANDLE instance, const std::string &kodiVersion="")
 Audio decoder class constructor used to support multiple instance types. More...
 
virtual bool Init (const std::string &filename, unsigned int filecache, int &channels, int &samplerate, int &bitspersample, int64_t &totaltime, int &bitrate, AudioEngineDataFormat &format, std::vector< AudioEngineChannel > &channellist)=0
 Initialize a decoder. More...
 
virtual int ReadPCM (uint8_t *buffer, int size, int &actualsize)=0
 Produce some noise. More...
 
virtual bool ReadTag (const std::string &file, kodi::addon::AudioDecoderInfoTag &tag)
 Read tag of a file. More...
 
virtual int64_t Seek (int64_t time)
 Seek in output stream. More...
 
virtual int TrackCount (const std::string &file)
 Get number of tracks in a file. More...
 
- Public Member Functions inherited from IAddonInstance
virtual ADDON_STATUS CreateInstance (int instanceType, const std::string &instanceID, KODI_HANDLE instance, const std::string &version, KODI_HANDLE &addonInstance)
 
 IAddonInstance (ADDON_TYPE type, const std::string &version)
 

Additional Inherited Members

- Public Attributes inherited from IAddonInstance
std::string m_id
 
const std::string m_kodiVersion
 
const ADDON_TYPE m_type
 

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