9#ifndef C_API_ADDONINSTANCE_VISUALIZATION_H
10#define C_API_ADDONINSTANCE_VISUALIZATION_H
12#include "../addon_base.h"
19 typedef KODI_ADDON_INSTANCE_HDL KODI_ADDON_VISUALIZATION_HDL;
26 const char* albumArtist;
31 const char* reserved1;
32 const char* reserved2;
46 ADDON_HARDWARE_CONTEXT device;
54 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_START_V1)(
55 const KODI_ADDON_VISUALIZATION_HDL hdl,
59 const char* song_name);
60 typedef void(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_STOP_V1)(
61 const KODI_ADDON_VISUALIZATION_HDL hdl);
63 typedef int(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_GET_SYNC_DELAY_V1)(
64 const KODI_ADDON_VISUALIZATION_HDL hdl);
66 typedef void(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_AUDIO_DATA_V1)(
67 const KODI_ADDON_VISUALIZATION_HDL hdl,
const float* audio_data,
size_t audio_data_length);
68 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_IS_DIRTY_V1)(
69 const KODI_ADDON_VISUALIZATION_HDL hdl);
70 typedef void(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_RENDER_V1)(
71 const KODI_ADDON_VISUALIZATION_HDL hdl);
73 typedef unsigned int(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_GET_PRESETS_V1)(
74 const KODI_ADDON_VISUALIZATION_HDL hdl);
75 typedef int(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_GET_ACTIVE_PRESET_V1)(
76 const KODI_ADDON_VISUALIZATION_HDL hdl);
77 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_PREV_PRESET_V1)(
78 const KODI_ADDON_VISUALIZATION_HDL hdl);
79 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_NEXT_PRESET_V1)(
80 const KODI_ADDON_VISUALIZATION_HDL hdl);
81 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_LOAD_PRESET_V1)(
82 const KODI_ADDON_VISUALIZATION_HDL hdl,
int select);
83 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_RANDOM_PRESET_V1)(
84 const KODI_ADDON_VISUALIZATION_HDL hdl);
85 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_LOCK_PRESET_V1)(
86 const KODI_ADDON_VISUALIZATION_HDL hdl);
87 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_RATE_PRESET_V1)(
88 const KODI_ADDON_VISUALIZATION_HDL hdl,
bool plus_minus);
89 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_IS_LOCKED_V1)(
90 const KODI_ADDON_VISUALIZATION_HDL hdl);
92 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_UPDATE_ALBUMART_V1)(
93 const KODI_ADDON_VISUALIZATION_HDL hdl,
const char* albumart);
94 typedef bool(ATTR_APIENTRYP PFN_KODI_ADDON_VISUALIZATION_UPDATE_TRACK_V1)(
99 PFN_KODI_ADDON_VISUALIZATION_START_V1 start;
100 PFN_KODI_ADDON_VISUALIZATION_STOP_V1 stop;
102 PFN_KODI_ADDON_VISUALIZATION_GET_SYNC_DELAY_V1 get_sync_delay;
104 PFN_KODI_ADDON_VISUALIZATION_AUDIO_DATA_V1 audio_data;
105 PFN_KODI_ADDON_VISUALIZATION_IS_DIRTY_V1 is_dirty;
106 PFN_KODI_ADDON_VISUALIZATION_RENDER_V1 render;
108 PFN_KODI_ADDON_VISUALIZATION_GET_PRESETS_V1 get_presets;
109 PFN_KODI_ADDON_VISUALIZATION_GET_ACTIVE_PRESET_V1 get_active_preset;
110 PFN_KODI_ADDON_VISUALIZATION_PREV_PRESET_V1 prev_preset;
111 PFN_KODI_ADDON_VISUALIZATION_NEXT_PRESET_V1 next_preset;
112 PFN_KODI_ADDON_VISUALIZATION_LOAD_PRESET_V1 load_preset;
113 PFN_KODI_ADDON_VISUALIZATION_RANDOM_PRESET_V1 random_preset;
114 PFN_KODI_ADDON_VISUALIZATION_LOCK_PRESET_V1 lock_preset;
115 PFN_KODI_ADDON_VISUALIZATION_RATE_PRESET_V1 rate_preset;
116 PFN_KODI_ADDON_VISUALIZATION_IS_LOCKED_V1 is_locked;
118 PFN_KODI_ADDON_VISUALIZATION_UPDATE_ALBUMART_V1 update_albumart;
119 PFN_KODI_ADDON_VISUALIZATION_UPDATE_TRACK_V1 update_track;
125 void (*transfer_preset)(
const KODI_HANDLE hdl,
const char* preset);
126 void (*clear_presets)(
const KODI_HANDLE hdl);
Definition visualization.h:130
Definition visualization.h:123
Definition visualization.h:45
Definition visualization.h:22
Definition visualization.h:98