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

Inherits IAddonInstance.

Public Member Functions

 CInstanceAudioEncoder (KODI_HANDLE instance, const std::string &kodiVersion="")
 Audio encoder class constructor used to support multiple instances. More...
 
virtual int Encode (int numBytesRead, const uint8_t *pbtStream)=0
 Encode a chunk of audio (required) More...
 
virtual bool Finish ()
 Finalize encoding (optional) More...
 
int64_t Seek (int64_t position, int whence=SEEK_SET)
 Set the file's current position. More...
 
virtual bool Start (int inChannels, int inRate, int inBits, const std::string &title, const std::string &artist, const std::string &albumartist, const std::string &album, const std::string &year, const std::string &track, const std::string &genre, const std::string &comment, int trackLength)=0
 Start encoder (required) More...
 
int Write (const uint8_t *data, int length)
 Write block of data. 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: