From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- .../include/kodi/kodi_adsp_dll.h | 45 +++------------------- 1 file changed, 5 insertions(+), 40 deletions(-) (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h') 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 @@ * to his type) about his given sample rate. * - About the from user selected master processing mode the related addon * becomes called now with MasterProcessSetMode(...) to handle it's - * selectionon the addon given by the own addon type identifier or by + * selection on the addon given by the own addon type identifier or by * KODI's useddatabase id, also the currently used stream type (e.g. * Music or Video) is send. * - If the addon supports only one master mode it can ignore this function @@ -96,39 +96,6 @@ extern "C" { /*! @name Audio DSP add-on methods */ //@{ - /*! - * Get the KODI_AE_DSP_API_VERSION that was used to compile this add-on. - * Used to check if this add-on is compatible with KODI. - * @return The KODI_AE_DSP_API_VERSION that was used to compile this add-on. - * @remarks Valid implementation required. - */ - const char* GetAudioDSPAPIVersion(void); - - /*! - * Get the KODI_AE_DSP_MIN_API_VERSION that was used to compile this add-on. - * Used to check if this add-on is compatible with KODI. - * @return The KODI_AE_DSP_MIN_API_VERSION that was used to compile this add-on. - * @remarks Valid implementation required. - */ - const char* GetMinimumAudioDSPAPIVersion(void); - - /*! - * @brief Get the KODI_GUI_API_VERSION that was used to compile this add-on. - * Used to check if this add-on is compatible with KODI. - * @return The KODI_GUI_API_VERSION that was used to compile this add-on. - * @remarks Valid implementation required. - */ - const char* GetGUIAPIVersion(void); - - /*! - * @brief Get the KODI_GUI_MIN_API_VERSION that was used to compile this - * add-on. - * Used to check if this add-on is compatible with KODI. - * @return The KODI_GUI_MIN_API_VERSION that was used to compile this add-on. - * @remarks Valid implementation required. - */ - const char* GetMinimumGUIAPIVersion(void); - /*! * @brief Get the list of features that this add-on provides. * Called by KODI to query the add-ons capabilities. @@ -179,7 +146,7 @@ extern "C" * surround upmix not needed on 5.1 audio stream. * @param addonSettings The add-ons audio settings. * @param pProperties The properties of the currently playing stream. - * @param handle On this becomes addon informated about stream id and can set function addresses which need on calls + * @param handle On this becomes addon informed about stream id and can set function addresses which need on calls * @return AE_DSP_ERROR_NO_ERROR if the properties were fetched successfully * and data can be performed. AE_DSP_ERROR_IGNORE_ME if format is not * supported, but without fault. @@ -517,12 +484,10 @@ extern "C" //@} // function to export the above structure to KODI - void __declspec(dllexport) get_addon(struct AudioDSP* pDSP) + void __declspec(dllexport) get_addon(void* ptr) { - pDSP->GetAudioDSPAPIVersion = GetAudioDSPAPIVersion; - pDSP->GetMinimumAudioDSPAPIVersion = GetMinimumAudioDSPAPIVersion; - pDSP->GetGUIAPIVersion = GetGUIAPIVersion; - pDSP->GetMinimumGUIAPIVersion = GetMinimumGUIAPIVersion; + KodiToAddonFuncTable_AudioDSP* pDSP = static_cast(ptr); + pDSP->GetAddonCapabilities = GetAddonCapabilities; pDSP->GetDSPName = GetDSPName; pDSP->GetDSPVersion = GetDSPVersion; -- cgit v1.2.3