AudioEffect_3_enable_or_disable
2020-03-19 14:55:47 0 举报
audio effect enable or disable
作者其他创作
大纲/内容
这里的ops是在初始化的时候指向了对应的preproc_ops_t
start_lstop_l
Effect Module
setEnabled_l
threadLoop
setEnabled_l函数关键的地方是更新了mState
in-stream.common.add_audio_effectin-stream.common.remove_audio_effect
process_l
mEffects[i]-updateState()
Audio Hal
Effect_SetState
effectChains[i]-process_l();
android_media_AudioEffect_native_setEnabled
AudioEffect.java
addAudioEffectremoveAudioEffect
EffectChain
EffectModule
PreProcessing.cpp
mIEffect-enable()mIEffect-disable()
setEnabled(state)
根据mState的不同状态调用start_l或者stop_l
audio_hw_hal.cpp
case PREPROC_EFFECT_STATE_CONFIG: switch (effect->state) case PREPROC_EFFECT_STATE_ACTIVE: effect->ops->disable(effect) case PREPROC_EFFECT_STATE_ACTIVE: switch (effect->state) case PREPROC_EFFECT_STATE_CONFIG: effect->ops->enable(effect);
setEnabled
AudioHalStreamIn
AudioFlinger::RecordThread
AudioEffect.cpp
AcousticEchoCanceler
android_media_AudioEffect
收藏
收藏
0 条评论
下一页