Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
addons/kodi-dev-kit/include/kodi/c-api/addon-instance/AudioDecoder.h File Reference
#include "../addon_base.h"
#include "../audio_engine.h"

Classes

struct  KODI_ADDON_AUDIODECODER_INFO_TAG
 
struct  AddonToKodiFuncTable_AudioDecoder
 
struct  KodiToAddonFuncTable_AudioDecoder
 
struct  AddonInstance_AudioDecoder
 

Macros

#define KODI_ADDON_AUDIODECODER_TRACK_EXT   "_adecstrm"
 Identifier which is attached to stream files and with defined names in addon.xml (name="???") if addon supports "tracks" (set in addon.xml tracks="true"). More...
 
#define KODI_ADDON_AUDIODECODER_GET_TRACK_EXT(name)   "." name KODI_ADDON_AUDIODECODER_TRACK_EXT
 Macro to get file extension to track supported files. More...
 

Typedefs

typedef void * KODI_ADDON_AUDIODECODER_HDL
 
typedef enum AUDIODECODER_READ_RETURN AUDIODECODER_READ_RETURN
 
typedef const char * file
 
typedef const char unsigned int filecache
 
typedef const char unsigned int int * channels
 
typedef const char unsigned int int int * samplerate
 
typedef const char unsigned int int int int * bitspersample
 
typedef const char unsigned int int int int int64_t * totaltime
 
typedef const char unsigned int int int int int64_t int * bitrate
 
typedef const char unsigned int int int int int64_t int enum AudioEngineDataFormat * format
 
typedef const char unsigned int int int int int64_t int enum AudioEngineDataFormat enum AudioEngineChannel info[AUDIOENGINE_CH_MAX]
 
typedef uint8_t * buffer
 
typedef uint8_t size_t size
 
typedef uint8_t size_t size_t * actualsize
 
typedef int64_t time
 
typedef const char struct KODI_ADDON_AUDIODECODER_INFO_TAG * tag
 
typedef struct AddonToKodiFuncTable_AudioDecoder AddonToKodiFuncTable_AudioDecoder
 
typedef struct KodiToAddonFuncTable_AudioDecoder KodiToAddonFuncTable_AudioDecoder
 
typedef struct AddonInstance_AudioDecoder AddonInstance_AudioDecoder
 

Enumerations

enum  AUDIODECODER_READ_RETURN { AUDIODECODER_READ_EOF = -1 , AUDIODECODER_READ_SUCCESS = 0 , AUDIODECODER_READ_ERROR = 1 }
 

Functions

typedef bool (ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_SUPPORTS_FILE_V1)(const KODI_ADDON_AUDIODECODER_HDL hdl
 
typedef int (ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_READ_PCM_V1)(const KODI_ADDON_AUDIODECODER_HDL hdl
 
typedef int64_t (ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_SEEK_V1)(const KODI_ADDON_AUDIODECODER_HDL hdl
 

Typedef Documentation

◆ actualsize

typedef uint8_t size_t size_t* actualsize

◆ AddonInstance_AudioDecoder

◆ AddonToKodiFuncTable_AudioDecoder

◆ bitrate

typedef const char unsigned int int int int int64_t int* bitrate

◆ bitspersample

typedef const char unsigned int int int int* bitspersample

◆ buffer

typedef uint8_t* buffer

◆ channels

typedef const char unsigned int int* channels

◆ file

typedef const char * file

◆ filecache

typedef const char unsigned int filecache

◆ format

typedef const char unsigned int int int int int64_t int enum AudioEngineDataFormat* format

◆ info

typedef const char unsigned int int int int int64_t int enum AudioEngineDataFormat enum AudioEngineChannel info[AUDIOENGINE_CH_MAX]

◆ KODI_ADDON_AUDIODECODER_HDL

◆ KodiToAddonFuncTable_AudioDecoder

◆ samplerate

typedef const char unsigned int int int* samplerate

◆ size

typedef uint8_t size_t size

◆ tag

typedef const char struct KODI_ADDON_AUDIODECODER_INFO_TAG* tag

◆ time

typedef int64_t time

◆ totaltime

typedef const char unsigned int int int int int64_t* totaltime

Function Documentation

◆ bool()

typedef bool ( ATTR_APIENTRYP  PFN_KODI_ADDON_AUDIODECODER_SUPPORTS_FILE_V1) const

◆ int()

typedef int ( ATTR_APIENTRYP  PFN_KODI_ADDON_AUDIODECODER_READ_PCM_V1) const

◆ int64_t()

typedef int64_t ( ATTR_APIENTRYP  PFN_KODI_ADDON_AUDIODECODER_SEEK_V1) const