AudioEffect_2_app_interface
2020-03-19 14:55:53 0 举报
android effect interface
作者其他创作
大纲/内容
jobjectArray
gNumEffects
AUDIOEFFECT_ERROR_NO_INIT
PreProcessing
queryNumberEffects
frameworks/av/media/libeffects/factory
android_media_AudioEffect_native_queryEffects()
addEffect_ll
*pDescriptor = *(effect_descriptor_t *)gCurEffect-object;
这里的create_effect函数则是加载libaisaudiopreprocess.so获取的接口.
numEffects
AudioEffect ( c++)
createEffect
createEffect_l
effect_handle_t
EffectModule
将该module插入到effectchain中
init()loadEffectConfigFile()updateNumEffects()
AutomaticGainControl
System
isEffectTypeAvailable
EffectQueryNumberEffects
继承
pHandle
new AudioEffect
queryEffectsnative_query_effects
这里通过effect_handle_t把effect的算法入口和上层的调用进行对接
create(sessionId)
set()new EffectClient(this)
AudioEffect ( java)
EffectsFactory
AcousticEchoCanceler.create(sessionId);这里的sessionId来源与我们创建的录音实例.mAudioRecorder.getAudioSessionId();
isAvailable()
android_media_AudioEffect
audio_effects.xml
AcousticEchoCanceler
new AcousticEchoCanceler(audioSession)
frameworks/base/media/jni/audioeffect
Threads
EffectChain
android_media_AudioEffect_native_setup()
total number number of effects
jni
throw Exception
NoiseSuppressor
AudioFlinger
desc
Application
NO_INIT如果这里没有匹配上
EffectCreate
PreProcessingLib_Create
收藏
收藏
0 条评论
下一页
为你推荐
查看更多