From 8f18cf55747b8ab138661a841cbb1b2bd19f3d97 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 27 May 2011 17:51:52 -0700 Subject: Removed interface to load audio effects libraries Removed unused functions allowing dynamic loading of audio effects libraries from effects factory API. Change-Id: I06cc5a51dc10aca87c7a8687bbb874babd711eca --- include/media/AudioEffect.h | 44 --------------------------------------- include/media/EffectsFactoryApi.h | 44 --------------------------------------- include/media/IAudioFlinger.h | 4 ---- 3 files changed, 92 deletions(-) (limited to 'include/media') diff --git a/include/media/AudioEffect.h b/include/media/AudioEffect.h index 401638a..dd93fd8 100644 --- a/include/media/AudioEffect.h +++ b/include/media/AudioEffect.h @@ -44,50 +44,6 @@ class AudioEffect : public RefBase public: /* - * Static methods for effect libraries management. - */ - - /* - * Loads the effect library which path is given as first argument. - * This must be the full path of a dynamic library (.so) implementing one or - * more effect engines and exposing the effect library interface described in - * EffectApi.h. The function returns a handle on the library for use by - * further call to unloadEffectLibrary() to unload the library. - * - * Parameters: - * libPath: full path of the dynamic library file in the file system. - * handle: address where to return the library handle - * - * Returned status (from utils/Errors.h) can be: - * NO_ERROR successful operation. - * PERMISSION_DENIED could not get AudioFlinger interface or - * application does not have permission to configure audio - * NO_INIT effect factory not initialized or - * library could not be loaded or - * library does not implement required functions - * BAD_VALUE invalid libPath string or handle - * - * Returned value: - * *handle updated with library handle - */ - static status_t loadEffectLibrary(const char *libPath, int *handle); - - /* - * Unloads the effect library which handle is given as argument. - * - * Parameters: - * handle: library handle - * - * Returned status (from utils/Errors.h) can be: - * NO_ERROR successful operation. - * PERMISSION_DENIED could not get AudioFlinger interface or - * application does not have permission to configure audio - * NO_INIT effect factory not initialized - * BAD_VALUE invalid handle - */ - static status_t unloadEffectLibrary(int handle); - - /* * Static methods for effects enumeration. */ diff --git a/include/media/EffectsFactoryApi.h b/include/media/EffectsFactoryApi.h index b63fac6..8ae13cc 100644 --- a/include/media/EffectsFactoryApi.h +++ b/include/media/EffectsFactoryApi.h @@ -132,50 +132,6 @@ int EffectRelease(effect_handle_t handle); //////////////////////////////////////////////////////////////////////////////// // -// Function: EffectLoadLibrary -// -// Description: Loads the effect library which path is given as first argument. -// This must be the full path of a dynamic library (.so) implementing one or -// more effect engines and exposing the effect library interface described in -// EffectApi.h. The function returns a handle on the library for used by -// further call to EffectUnloadLibrary() to unload the library. -// -// Input: -// libPath: full path of the dynamic library file in the file system. -// -// handle: address where to return the library handle -// -// Output: -// returned value: 0 successful operation. -// -ENODEV effect factory not initialized or -// library could not be loaded or -// library does not implement required functions -// -EINVAL invalid libPath string or handle -// -//////////////////////////////////////////////////////////////////////////////// -int EffectLoadLibrary(const char *libPath, int *handle); - -//////////////////////////////////////////////////////////////////////////////// -// -// Function: EffectUnloadLibrary -// -// Description: Unloads the effect library which handle is given as argument. -// -// Input: -// handle: library handle -// -// Output: -// returned value: 0 successful operation. -// -ENODEV effect factory not initialized -// -ENOENT invalid handle -// -//////////////////////////////////////////////////////////////////////////////// -int EffectUnloadLibrary(int handle); - - - -//////////////////////////////////////////////////////////////////////////////// -// // Function: EffectGetDescriptor // // Description: Returns the descriptor of the effect which uuid is pointed diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 75f3e71..d8fdc27 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -139,10 +139,6 @@ public: virtual int newAudioSessionId() = 0; - virtual status_t loadEffectLibrary(const char *libPath, int *handle) = 0; - - virtual status_t unloadEffectLibrary(int handle) = 0; - virtual status_t queryNumberEffects(uint32_t *numEffects) = 0; virtual status_t queryEffect(uint32_t index, effect_descriptor_t *pDescriptor) = 0; -- cgit v1.1