summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h
diff options
context:
space:
mode:
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.h57
1 files changed, 0 insertions, 57 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
deleted file mode 100644
index 7252721..0000000
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h
+++ /dev/null
@@ -1,57 +0,0 @@
1#pragma once
2
3/*
4 * Copyright (C) 2005-2015 Team Kodi
5 * http://kodi.tv
6 *
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
11 *
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with Kodi; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#include "xbmc_addon_dll.h"
24#include "xbmc_vis_types.h"
25
26extern "C"
27{
28 // Functions that your visualisation must implement
29 void Start(int iChannels, int iSamplesPerSec, int iBitsPerSample, const char* szSongName);
30 void Stop();
31 void AudioData(const float* pAudioData, int iAudioDataLength, float *pFreqData, int iFreqDataLength);
32 void Render();
33 bool OnAction(long action, const void *param);
34 void GetInfo(VIS_INFO* pInfo);
35 unsigned int GetPresets(char ***presets);
36 unsigned GetPreset();
37 unsigned int GetSubModules(char ***presets);
38 bool IsLocked();
39
40 // function to export the above structure to XBMC
41 void __declspec(dllexport) get_addon(void* ptr)
42 {
43 AddonInstance_Visualization* pVisz = static_cast<AddonInstance_Visualization*>(ptr);
44
45 pVisz->toAddon.Start = Start;
46 pVisz->toAddon.Stop = Stop;
47 pVisz->toAddon.AudioData = AudioData;
48 pVisz->toAddon.Render = Render;
49 pVisz->toAddon.OnAction = OnAction;
50 pVisz->toAddon.GetInfo = GetInfo;
51 pVisz->toAddon.GetPresets = GetPresets;
52 pVisz->toAddon.GetPreset = GetPreset;
53 pVisz->toAddon.GetSubModules = GetSubModules;
54 pVisz->toAddon.IsLocked = IsLocked;
55 };
56};
57