summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h45
1 files changed, 5 insertions, 40 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h
index c1d8238..b0ecb8b 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h
@@ -49,7 +49,7 @@
49 * to his type) about his given sample rate. 49 * to his type) about his given sample rate.
50 * - About the from user selected master processing mode the related addon 50 * - About the from user selected master processing mode the related addon
51 * becomes called now with MasterProcessSetMode(...) to handle it's 51 * becomes called now with MasterProcessSetMode(...) to handle it's
52 * selectionon the addon given by the own addon type identifier or by 52 * selection on the addon given by the own addon type identifier or by
53 * KODI's useddatabase id, also the currently used stream type (e.g. 53 * KODI's useddatabase id, also the currently used stream type (e.g.
54 * Music or Video) is send. 54 * Music or Video) is send.
55 * - If the addon supports only one master mode it can ignore this function 55 * - If the addon supports only one master mode it can ignore this function
@@ -97,39 +97,6 @@ extern "C"
97 /*! @name Audio DSP add-on methods */ 97 /*! @name Audio DSP add-on methods */
98 //@{ 98 //@{
99 /*! 99 /*!
100 * Get the KODI_AE_DSP_API_VERSION that was used to compile this add-on.
101 * Used to check if this add-on is compatible with KODI.
102 * @return The KODI_AE_DSP_API_VERSION that was used to compile this add-on.
103 * @remarks Valid implementation required.
104 */
105 const char* GetAudioDSPAPIVersion(void);
106
107 /*!
108 * Get the KODI_AE_DSP_MIN_API_VERSION that was used to compile this add-on.
109 * Used to check if this add-on is compatible with KODI.
110 * @return The KODI_AE_DSP_MIN_API_VERSION that was used to compile this add-on.
111 * @remarks Valid implementation required.
112 */
113 const char* GetMinimumAudioDSPAPIVersion(void);
114
115 /*!
116 * @brief Get the KODI_GUI_API_VERSION that was used to compile this add-on.
117 * Used to check if this add-on is compatible with KODI.
118 * @return The KODI_GUI_API_VERSION that was used to compile this add-on.
119 * @remarks Valid implementation required.
120 */
121 const char* GetGUIAPIVersion(void);
122
123 /*!
124 * @brief Get the KODI_GUI_MIN_API_VERSION that was used to compile this
125 * add-on.
126 * Used to check if this add-on is compatible with KODI.
127 * @return The KODI_GUI_MIN_API_VERSION that was used to compile this add-on.
128 * @remarks Valid implementation required.
129 */
130 const char* GetMinimumGUIAPIVersion(void);
131
132 /*!
133 * @brief Get the list of features that this add-on provides. 100 * @brief Get the list of features that this add-on provides.
134 * Called by KODI to query the add-ons capabilities. 101 * Called by KODI to query the add-ons capabilities.
135 * Used to check which options should be presented in the DSP, which methods 102 * Used to check which options should be presented in the DSP, which methods
@@ -179,7 +146,7 @@ extern "C"
179 * surround upmix not needed on 5.1 audio stream. 146 * surround upmix not needed on 5.1 audio stream.
180 * @param addonSettings The add-ons audio settings. 147 * @param addonSettings The add-ons audio settings.
181 * @param pProperties The properties of the currently playing stream. 148 * @param pProperties The properties of the currently playing stream.
182 * @param handle On this becomes addon informated about stream id and can set function addresses which need on calls 149 * @param handle On this becomes addon informed about stream id and can set function addresses which need on calls
183 * @return AE_DSP_ERROR_NO_ERROR if the properties were fetched successfully 150 * @return AE_DSP_ERROR_NO_ERROR if the properties were fetched successfully
184 * and data can be performed. AE_DSP_ERROR_IGNORE_ME if format is not 151 * and data can be performed. AE_DSP_ERROR_IGNORE_ME if format is not
185 * supported, but without fault. 152 * supported, but without fault.
@@ -517,12 +484,10 @@ extern "C"
517 //@} 484 //@}
518 485
519 // function to export the above structure to KODI 486 // function to export the above structure to KODI
520 void __declspec(dllexport) get_addon(struct AudioDSP* pDSP) 487 void __declspec(dllexport) get_addon(void* ptr)
521 { 488 {
522 pDSP->GetAudioDSPAPIVersion = GetAudioDSPAPIVersion; 489 KodiToAddonFuncTable_AudioDSP* pDSP = static_cast<KodiToAddonFuncTable_AudioDSP*>(ptr);
523 pDSP->GetMinimumAudioDSPAPIVersion = GetMinimumAudioDSPAPIVersion; 490
524 pDSP->GetGUIAPIVersion = GetGUIAPIVersion;
525 pDSP->GetMinimumGUIAPIVersion = GetMinimumGUIAPIVersion;
526 pDSP->GetAddonCapabilities = GetAddonCapabilities; 491 pDSP->GetAddonCapabilities = GetAddonCapabilities;
527 pDSP->GetDSPName = GetDSPName; 492 pDSP->GetDSPName = GetDSPName;
528 pDSP->GetDSPVersion = GetDSPVersion; 493 pDSP->GetDSPVersion = GetDSPVersion;