diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h index 50452c2..7252721 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h | |||
| @@ -27,6 +27,7 @@ extern "C" | |||
| 27 | { | 27 | { |
| 28 | // Functions that your visualisation must implement | 28 | // Functions that your visualisation must implement |
| 29 | void Start(int iChannels, int iSamplesPerSec, int iBitsPerSample, const char* szSongName); | 29 | void Start(int iChannels, int iSamplesPerSec, int iBitsPerSample, const char* szSongName); |
| 30 | void Stop(); | ||
| 30 | void AudioData(const float* pAudioData, int iAudioDataLength, float *pFreqData, int iFreqDataLength); | 31 | void AudioData(const float* pAudioData, int iAudioDataLength, float *pFreqData, int iFreqDataLength); |
| 31 | void Render(); | 32 | void Render(); |
| 32 | bool OnAction(long action, const void *param); | 33 | bool OnAction(long action, const void *param); |
| @@ -37,17 +38,20 @@ extern "C" | |||
| 37 | bool IsLocked(); | 38 | bool IsLocked(); |
| 38 | 39 | ||
| 39 | // function to export the above structure to XBMC | 40 | // function to export the above structure to XBMC |
| 40 | void __declspec(dllexport) get_addon(struct Visualisation* pVisz) | 41 | void __declspec(dllexport) get_addon(void* ptr) |
| 41 | { | 42 | { |
| 42 | pVisz->Start = Start; | 43 | AddonInstance_Visualization* pVisz = static_cast<AddonInstance_Visualization*>(ptr); |
| 43 | pVisz->AudioData = AudioData; | 44 | |
| 44 | pVisz->Render = Render; | 45 | pVisz->toAddon.Start = Start; |
| 45 | pVisz->OnAction = OnAction; | 46 | pVisz->toAddon.Stop = Stop; |
| 46 | pVisz->GetInfo = GetInfo; | 47 | pVisz->toAddon.AudioData = AudioData; |
| 47 | pVisz->GetPresets = GetPresets; | 48 | pVisz->toAddon.Render = Render; |
| 48 | pVisz->GetPreset = GetPreset; | 49 | pVisz->toAddon.OnAction = OnAction; |
| 49 | pVisz->GetSubModules = GetSubModules; | 50 | pVisz->toAddon.GetInfo = GetInfo; |
| 50 | pVisz->IsLocked = IsLocked; | 51 | pVisz->toAddon.GetPresets = GetPresets; |
| 52 | pVisz->toAddon.GetPreset = GetPreset; | ||
| 53 | pVisz->toAddon.GetSubModules = GetSubModules; | ||
| 54 | pVisz->toAddon.IsLocked = IsLocked; | ||
| 51 | }; | 55 | }; |
| 52 | }; | 56 | }; |
| 53 | 57 | ||
