Lines Matching defs:effect

80 // 0; but one side effect of this is to turn all LOGV's as well.  Some messages
115 // we define a minimum time during which a global effect is considered enabled.
524 // dump orphan effect chains
739 // check if an effect chain with the same session ID is present on another
771 // move effect chain to this output thread if an effect on same session was waiting
1739 // Check if one effect chain was awaiting for an AudioRecord to be created on this
2499 // If we still have effect chains, it means that a client still holds a handle
2500 // on at least one effect. We must either move the chain to an existing thread with the
2524 ALOGV("closeInput() found thread %d for effect session %d",
2723 sp<EffectModule> effect = ec->mEffects[0];
2724 effect->unPin();
2725 t->removeEffect_l(effect, /*release*/ true);
2726 if (effect->purgeHandles()) {
2727 t->checkSuspendOnEffectEnabled_l(effect, false, effect->sessionId());
2729 AudioSystem::unregisterEffect(effect->id());
3005 // if uuid is specified, request effect descriptor
3013 // of the required type in effect factory
3015 ALOGW("createEffect() no effect type");
3036 // If matching type found save effect descriptor. If the session is
3037 // 0 and the effect is not auxiliary, continue enumeration in case
3038 // an auxiliary version of this effect type is available
3049 ALOGW("createEffect() effect not found");
3052 // For same effect type, chose auxiliary version over insert version if
3075 // return effect descriptor
3091 // Note: io is never 0 when creating an effect on an input
3123 // first output. The effect chain will be moved to the correct output
3128 ALOGV("createEffect() got io %d for effect %s", io, desc.name);
3142 // Check if one effect chain was awaiting for an effect to be created on this
3153 // create effect on selected output thread
3214 ALOGW("moveEffectChain_l() effect chain for session %d not on source thread %p",
3221 ALOGW("moveEffectChain_l() effect chain failed because"
3227 // remove chain first. This is useful only if reconfiguring effect chain on same output thread,
3228 // so that a new chain is created with correct parameters when first effect is added. This is
3229 // otherwise unnecessary as removeEffect_l() will remove the chain when last effect is
3233 // transfer all effects one by one so that new effect chain is created on new thread with
3234 // correct buffer sizes and audio parameters and effect engines reconfigured accordingly
3237 sp<EffectModule> effect = chain->getEffectFromId_l(0);
3240 while (effect != 0) {
3241 srcThread->removeEffect_l(effect);
3242 removed.add(effect);
3243 status = dstThread->addEffect_l(effect);
3247 // removeEffect_l() has stopped the effect if it was active so it must be restarted
3248 if (effect->state() == EffectModule::ACTIVE ||
3249 effect->state() == EffectModule::STOPPING) {
3250 effect->start();
3252 // if the move request is not received from audio policy manager, the effect must be
3255 dstChain = effect->chain().promote();
3257 ALOGW("moveEffectChain_l() cannot get chain from effect %p", effect.get());
3264 AudioSystem::unregisterEffect(effect->id());
3265 AudioSystem::registerEffect(&effect->desc(),
3269 effect->id());
3270 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
3272 effect = chain->getEffectFromId_l(0);
3285 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
3355 bool AudioFlinger::updateOrphanEffectChains(const sp<AudioFlinger::EffectModule>& effect)
3358 audio_session_t session = effect->sessionId();
3363 if (chain->removeEffect_l(effect, true) == 0) {
3364 ALOGV("updateOrphanEffectChains removing effect chain at index %zd", index);