Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
kodi::addon::CInstanceAudioDecoder Class Referenceabstract

#include <AudioDecoder.h>

Inheritance diagram for kodi::addon::CInstanceAudioDecoder:

Public Member Functions

 CInstanceAudioDecoder (const kodi::addon::IInstanceInfo &instance)
 Audio decoder class constructor used to support multiple instance types.
virtual bool SupportsFile (const std::string &filename)
 Checks addon support given file path.
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.
virtual int ReadPCM (uint8_t *buffer, size_t size, size_t &actualsize)=0
 Produce some noise.
virtual int64_t Seek (int64_t time)
 Seek in output stream.
virtual bool ReadTag (const std::string &file, kodi::addon::AudioDecoderInfoTag &tag)
 Read tag of a file.
virtual int TrackCount (const std::string &file)
 Get number of tracks in a file.
- Public Member Functions inherited from kodi::addon::IAddonInstance
 IAddonInstance (const kodi::addon::IInstanceInfo &instance)
virtual ~IAddonInstance ()=default
virtual ADDON_STATUS CreateInstance (const kodi::addon::IInstanceInfo &instance, KODI_ADDON_INSTANCE_HDL &hdl)
std::string GetInstanceAPIVersion () const
virtual ADDON_STATUS SetInstanceSetting (const std::string &settingName, const kodi::addon::CSettingValue &settingValue)
bool IsInstanceSettingUsingDefault (const std::string &settingName)
std::string GetInstanceUserPath (const std::string &append="")
bool CheckInstanceSettingString (const std::string &settingName, std::string &settingValue)
std::string GetInstanceSettingString (const std::string &settingName, const std::string &defaultValue="")
void SetInstanceSettingString (const std::string &settingName, const std::string &settingValue)
bool CheckInstanceSettingInt (const std::string &settingName, int &settingValue)
int GetInstanceSettingInt (const std::string &settingName, int defaultValue=0)
void SetInstanceSettingInt (const std::string &settingName, int settingValue)
bool CheckInstanceSettingBoolean (const std::string &settingName, bool &settingValue)
bool GetInstanceSettingBoolean (const std::string &settingName, bool defaultValue=false)
void SetInstanceSettingBoolean (const std::string &settingName, bool settingValue)
bool CheckInstanceSettingFloat (const std::string &settingName, float &settingValue)
float GetInstanceSettingFloat (const std::string &settingName, float defaultValue=0.0f)
void SetInstanceSettingFloat (const std::string &settingName, float settingValue)
template<typename enumType >
bool CheckInstanceSettingEnum (const std::string &settingName, enumType &settingValue)
template<typename enumType >
enumType GetInstanceSettingEnum (const std::string &settingName, enumType defaultValue=static_cast< enumType >(0))
template<typename enumType >
void SetInstanceSettingEnum (const std::string &settingName, enumType settingValue)

Static Public Member Functions

static std::string GetTrack (const std::string &name, const std::string &trackPath, int &track)
 Static auxiliary function to read the track number used from the given path.

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