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 | 0fb66c2b83084a16989afaf949d0101cb6505398 (patch) | |
tree | 82955066a3cd98e23ecfb4b33ba0beec715331d2 /services/audioflinger/AudioFlinger.h | |
parent | 03edf6b36469a504bd17a5010c788c8d4e44085c (diff) | |
download | frameworks_base-0fb66c2b83084a16989afaf949d0101cb6505398.zip frameworks_base-0fb66c2b83084a16989afaf949d0101cb6505398.tar.gz frameworks_base-0fb66c2b83084a16989afaf949d0101cb6505398.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 'services/audioflinger/AudioFlinger.h')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 39314ad..f3e1984 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -1002,14 +1002,6 @@ private: status_t start_l(); status_t stop_l(); - // update this table when AudioSystem::audio_devices or audio_device_e (in EffectApi.h) are modified - static const uint32_t sDeviceConvTable[]; - static uint32_t deviceAudioSystemToEffectApi(uint32_t device); - - // update this table when AudioSystem::audio_mode or audio_mode_e (in EffectApi.h) are modified - static const uint32_t sModeConvTable[]; - static int modeAudioSystemToEffectApi(uint32_t mode); - Mutex mLock; // mutex for process, commands and handles list protection wp<ThreadBase> mThread; // parent thread wp<EffectChain> mChain; // parent effect chain @@ -1017,7 +1009,7 @@ private: int mSessionId; // audio session ID effect_descriptor_t mDescriptor;// effect descriptor received from effect engine effect_config_t mConfig; // input and output audio configuration - effect_interface_t mEffectInterface; // Effect module C API + effect_handle_t mEffectInterface; // Effect module C API status_t mStatus; // initialization status uint32_t mState; // current activation state (effect_state) Vector< wp<EffectHandle> > mHandles; // list of client handles |