diff options
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.h | 21 |
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 | ||
| 48 | class CAddonAEStream; | 44 | class 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(); |
