9#ifndef C_API_ADDONINSTANCE_AUDIODECODER_H
10#define C_API_ADDONINSTANCE_AUDIODECODER_H
12#include "../addon_base.h"
13#include "../audio_engine.h"
26#define KODI_ADDON_AUDIODECODER_TRACK_EXT "_adecstrm"
39#define KODI_ADDON_AUDIODECODER_GET_TRACK_EXT(name) "." name KODI_ADDON_AUDIODECODER_TRACK_EXT
48 typedef KODI_ADDON_INSTANCE_HDL KODI_ADDON_AUDIODECODER_HDL;
97 char* cover_art_mem_mimetype;
98 uint8_t* cover_art_mem;
99 size_t cover_art_mem_size;
102 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_SUPPORTS_FILE_V1)(
103 const KODI_ADDON_AUDIODECODER_HDL hdl,
const char* file);
104 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_INIT_V1)(
105 const KODI_ADDON_AUDIODECODER_HDL hdl,
107 unsigned int filecache,
115 typedef int(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_READ_PCM_V1)(
116 const KODI_ADDON_AUDIODECODER_HDL hdl, uint8_t* buffer,
size_t size,
size_t* actualsize);
117 typedef int64_t(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_SEEK_V1)(
118 const KODI_ADDON_AUDIODECODER_HDL hdl, int64_t time);
119 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_READ_TAG_V1)(
120 const KODI_ADDON_AUDIODECODER_HDL hdl,
123 typedef int(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_TRACK_COUNT_V1)(
124 const KODI_ADDON_AUDIODECODER_HDL hdl,
const char* file);
128 KODI_HANDLE kodiInstance;
133 PFN_KODI_ADDON_AUDIODECODER_SUPPORTS_FILE_V1 supports_file;
134 PFN_KODI_ADDON_AUDIODECODER_INIT_V1 init;
135 PFN_KODI_ADDON_AUDIODECODER_READ_PCM_V1 read_pcm;
136 PFN_KODI_ADDON_AUDIODECODER_SEEK_V1 seek;
137 PFN_KODI_ADDON_AUDIODECODER_READ_TAG_V1 read_tag;
138 PFN_KODI_ADDON_AUDIODECODER_TRACK_COUNT_V1 track_count;
AUDIODECODER_READ_RETURN
Definition audiodecoder.h:64
@ AUDIODECODER_READ_SUCCESS
On success.
Definition audiodecoder.h:69
@ AUDIODECODER_READ_EOF
On end of stream.
Definition audiodecoder.h:66
@ AUDIODECODER_READ_ERROR
On failure.
Definition audiodecoder.h:72
AudioEngineChannel
Definition audio_engine.h:70
@ AUDIOENGINE_CH_MAX
Maximum possible value, to use e.g. as size inside list.
Definition audio_engine.h:116
Definition audiodecoder.h:142
Definition audiodecoder.h:127
Definition audiodecoder.h:78
Definition visualization.h:22
Definition audiodecoder.h:132