From 65580f9adf6c4d98449ad0716488f9fe3869aa5a 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 --- services/audioflinger/AudioFlinger.cpp | 22 ---------------------- services/audioflinger/AudioFlinger.h | 4 ---- 2 files changed, 26 deletions(-) (limited to 'services') diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 67c6d96..053854f 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -4615,28 +4615,6 @@ int AudioFlinger::nextUniqueId_l() // ---------------------------------------------------------------------------- -status_t AudioFlinger::loadEffectLibrary(const char *libPath, int *handle) -{ - // check calling permissions - if (!settingsAllowed()) { - return PERMISSION_DENIED; - } - - Mutex::Autolock _l(mLock); - return EffectLoadLibrary(libPath, handle); -} - -status_t AudioFlinger::unloadEffectLibrary(int handle) -{ - // check calling permissions - if (!settingsAllowed()) { - return PERMISSION_DENIED; - } - - Mutex::Autolock _l(mLock); - return EffectUnloadLibrary(handle); -} - status_t AudioFlinger::queryNumberEffects(uint32_t *numEffects) { Mutex::Autolock _l(mLock); diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index f3e1984..0698dcb 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -147,10 +147,6 @@ public: virtual int newAudioSessionId(); - virtual status_t loadEffectLibrary(const char *libPath, int *handle); - - virtual status_t unloadEffectLibrary(int handle); - virtual status_t queryNumberEffects(uint32_t *numEffects); virtual status_t queryEffect(uint32_t index, effect_descriptor_t *descriptor); -- cgit v1.1