diff options
author | Eric Laurent <elaurent@google.com> | 2011-05-17 19:16:02 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-05-27 15:15:00 -0700 |
commit | e1315cf0b63b4c14a77046519e6b01f6f60d74b0 (patch) | |
tree | c10fd288fd0d0d85c619e7e635a249765202fabc /include/media/EffectsFactoryApi.h | |
parent | a3e73df3b402f1ebdbef7c8a8e3111d852e7bd35 (diff) | |
download | frameworks_av-e1315cf0b63b4c14a77046519e6b01f6f60d74b0.zip frameworks_av-e1315cf0b63b4c14a77046519e6b01f6f60d74b0.tar.gz frameworks_av-e1315cf0b63b4c14a77046519e6b01f6f60d74b0.tar.bz2 |
New effect library API
Moved and renamed media/EffectApi.h to hardware/audio_effect.h
Modified the effect library API to expose a library info structure
containing an interface functions table.
Also removed enums for audio channels, audio format and devices
from effect API and use values from system/audio.h instead.
Modified effects factory to support new library interface format and
load libraries and efffects listed in audio_effects.conf file.
The file audio_effects.conf is first loaded from /vendor/etc and
then from /system/etc/audio_effects.conf if not found.
Modified existing effect libraries to implement the new library interface.
Change-Id: Ie52351e071b6d352fa2fbc06c3846686f8c45df9
Diffstat (limited to 'include/media/EffectsFactoryApi.h')
-rw-r--r-- | include/media/EffectsFactoryApi.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/media/EffectsFactoryApi.h b/include/media/EffectsFactoryApi.h index 0ed1a14..b63fac6 100644 --- a/include/media/EffectsFactoryApi.h +++ b/include/media/EffectsFactoryApi.h @@ -20,7 +20,7 @@ #include <errno.h> #include <stdint.h> #include <sys/types.h> -#include <media/EffectApi.h> +#include <hardware/audio_effect.h> #if __cplusplus extern "C" { @@ -99,17 +99,17 @@ int EffectQueryEffect(uint32_t index, effect_descriptor_t *pDescriptor); // use especially with tunneled HW accelerated effects // // Input/Output: -// pInterface: address where to return the effect interface. +// pHandle: address where to return the effect handle. // // Output: // returned value: 0 successful operation. // -ENODEV factory failed to initialize -// -EINVAL invalid pEffectUuid or pInterface +// -EINVAL invalid pEffectUuid or pHandle // -ENOENT no effect with this uuid found -// *pInterface: updated with the effect interface. +// *pHandle: updated with the effect handle. // //////////////////////////////////////////////////////////////////////////////// -int EffectCreate(effect_uuid_t *pEffectUuid, int32_t sessionId, int32_t ioId, effect_interface_t *pInterface); +int EffectCreate(effect_uuid_t *pEffectUuid, int32_t sessionId, int32_t ioId, effect_handle_t *pHandle); //////////////////////////////////////////////////////////////////////////////// // @@ -120,7 +120,7 @@ int EffectCreate(effect_uuid_t *pEffectUuid, int32_t sessionId, int32_t ioId, ef // released. // // Input: -// interface: handler on the effect interface to be released. +// handle: handler on the effect interface to be released. // // Output: // returned value: 0 successful operation. @@ -128,7 +128,7 @@ int EffectCreate(effect_uuid_t *pEffectUuid, int32_t sessionId, int32_t ioId, ef // -EINVAL invalid interface handler // //////////////////////////////////////////////////////////////////////////////// -int EffectRelease(effect_interface_t interface); +int EffectRelease(effect_handle_t handle); //////////////////////////////////////////////////////////////////////////////// // |