summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2016-11-24 21:27:41 +0100
committermanuel <manuel@mausz.at>2016-11-24 21:27:41 +0100
commit8cdf8dec703d882b46ca50a769fabb95ffc48e2c (patch)
treef7fe8233508f79d3dc94f8f445ce6342e7dfbdbb /xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h
parent5823b05feb29a59510c32a9c28ca18b50b9b6399 (diff)
downloadkodi-pvr-build-8cdf8dec703d882b46ca50a769fabb95ffc48e2c.tar.gz
kodi-pvr-build-8cdf8dec703d882b46ca50a769fabb95ffc48e2c.tar.bz2
kodi-pvr-build-8cdf8dec703d882b46ca50a769fabb95ffc48e2c.zip
sync with upstream
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h
index be3b93d..7dbf7af 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h
@@ -38,12 +38,8 @@
38 38
39#include "libXBMC_addon.h" 39#include "libXBMC_addon.h"
40 40
41#ifdef _WIN32 41#define AUDIOENGINE_HELPER_DLL KODI_DLL("audioengine")
42#define AUDIOENGINE_HELPER_DLL "\\library.kodi.audioengine\\libKODI_audioengine" ADDON_HELPER_EXT 42#define AUDIOENGINE_HELPER_DLL_NAME KODI_DLL_NAME("audioengine")
43#else
44#define AUDIOENGINE_HELPER_DLL_NAME "libKODI_audioengine-" ADDON_HELPER_ARCH ADDON_HELPER_EXT
45#define AUDIOENGINE_HELPER_DLL "/library.kodi.audioengine/" AUDIOENGINE_HELPER_DLL_NAME
46#endif
47 43
48class CAddonAEStream; 44class CAddonAEStream;
49 45
@@ -78,15 +74,6 @@ public:
78 libBasePath = ((cb_array*)m_Handle)->libPath; 74 libBasePath = ((cb_array*)m_Handle)->libPath;
79 libBasePath += AUDIOENGINE_HELPER_DLL; 75 libBasePath += AUDIOENGINE_HELPER_DLL;
80 76
81#if defined(ANDROID)
82 struct stat st;
83 if(stat(libBasePath.c_str(),&st) != 0)
84 {
85 std::string tempbin = getenv("XBMC_ANDROID_LIBS");
86 libBasePath = tempbin + "/" + AUDIOENGINE_HELPER_DLL;
87 }
88#endif
89
90 m_libKODI_audioengine = dlopen(libBasePath.c_str(), RTLD_LAZY); 77 m_libKODI_audioengine = dlopen(libBasePath.c_str(), RTLD_LAZY);
91 if (m_libKODI_audioengine == NULL) 78 if (m_libKODI_audioengine == NULL)
92 { 79 {
@@ -207,8 +194,8 @@ public:
207 virtual bool IsBuffering(); 194 virtual bool IsBuffering();
208 195
209 /** 196 /**
210 * Returns the time in seconds that it will take 197 * Returns the time in seconds of the stream's
211 * to underrun the cache if no sample is added. 198 * cached audio samples. Engine buffers excluded.
212 * @return seconds 199 * @return seconds
213 */ 200 */
214 virtual double GetCacheTime(); 201 virtual double GetCacheTime();