diff options
author | Marco Nelissen <marcone@google.com> | 2012-10-25 11:02:06 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-10-25 11:04:37 -0700 |
commit | df6d04926adf4c4a495ac0e71b5fc65a42b90489 (patch) | |
tree | b1d319bf9ab7aea3d89e7a571567c929a7182126 /voicefx | |
parent | 67e63e75bee5933d561023b0bb7a5009e0962923 (diff) | |
download | manta-df6d04926adf4c4a495ac0e71b5fc65a42b90489.tar.gz |
Switch to new fx library API
Change-Id: I16ecda728e2371152db65fe2028c3b9b4e4163d4
Diffstat (limited to 'voicefx')
-rw-r--r-- | voicefx/eS305VoiceProcessing.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/voicefx/eS305VoiceProcessing.cpp b/voicefx/eS305VoiceProcessing.cpp index 24b7b23..43026ea 100644 --- a/voicefx/eS305VoiceProcessing.cpp +++ b/voicefx/eS305VoiceProcessing.cpp @@ -948,35 +948,6 @@ const struct effect_interface_s sEffectInterface = { //------------------------------------------------------------------------------ // Effect Library Interface Implementation //------------------------------------------------------------------------------ -int adnc_query_number_effects(uint32_t *pNumEffects) -{ - if (pNumEffects == NULL) { - return -EINVAL; - } - *pNumEffects = PFX_ID_CNT; - return sAdncBundleInitStatus; -} - -int adnc_query_effect(uint32_t index, effect_descriptor_t *pDescriptor) -{ - int status = 0; - - pthread_mutex_lock(&sAdncBundleLock); - - if (AdncBundle_Init_l() != 0) { - status = sAdncBundleInitStatus; - goto exit; - } - if (index >= PFX_ID_CNT) { - status = -EINVAL; - goto exit; - } - memcpy(pDescriptor, adnc_pfx_descriptors[index], sizeof(effect_descriptor_t)); - -exit: - pthread_mutex_unlock(&sAdncBundleLock); - return status; -} int adnc_create(const effect_uuid_t *uuid, int32_t sessionId, @@ -1091,8 +1062,6 @@ audio_effect_library_t AUDIO_EFFECT_LIBRARY_INFO_SYM = { version : EFFECT_LIBRARY_API_VERSION, name : "Audience Voice Preprocessing Library", implementor : "The Android Open Source Project", - query_num_effects : adnc_query_number_effects, - query_effect : adnc_query_effect, create_effect : adnc_create, release_effect : adnc_release, get_descriptor : adnc_get_descriptor |