Lines Matching defs:effect

79 // 0; but one side effect of this is to turn all LOGV's as well.  Some messages
114 // we define a minimum time during which a global effect is considered enabled.
507 // dump orphan effect chains
724 // check if an effect chain with the same session ID is present on another
751 // move effect chain to this output thread if an effect on same session was waiting
1682 // Check if one effect chain was awaiting for an AudioRecord to be created on this
2396 // If we still have effect chains, it means that a client still holds a handle
2397 // on at least one effect. We must either move the chain to an existing thread with the
2421 ALOGV("closeInput() found thread %d for effect session %d",
2618 sp<EffectModule> effect = ec->mEffects[0];
2619 effect->unPin();
2620 t->removeEffect_l(effect);
2621 if (effect->purgeHandles()) {
2622 t->checkSuspendOnEffectEnabled_l(effect, false, effect->sessionId());
2624 AudioSystem::unregisterEffect(effect->id());
2900 // if uuid is specified, request effect descriptor
2908 // of the required type in effect factory
2910 ALOGW("createEffect() no effect type");
2931 // If matching type found save effect descriptor. If the session is
2932 // 0 and the effect is not auxiliary, continue enumeration in case
2933 // an auxiliary version of this effect type is available
2944 ALOGW("createEffect() effect not found");
2947 // For same effect type, chose auxiliary version over insert version if
2969 // return effect descriptor
2985 // Note: io is never 0 when creating an effect on an input
3017 // first output. The effect chain will be moved to the correct output
3022 ALOGV("createEffect() got io %d for effect %s", io, desc.name);
3036 // Check if one effect chain was awaiting for an effect to be created on this
3047 // create effect on selected output thread
3103 ALOGW("moveEffectChain_l() effect chain for session %d not on source thread %p",
3110 ALOGW("moveEffectChain_l() effect chain failed because"
3116 // remove chain first. This is useful only if reconfiguring effect chain on same output thread,
3117 // so that a new chain is created with correct parameters when first effect is added. This is
3118 // otherwise unnecessary as removeEffect_l() will remove the chain when last effect is
3122 // transfer all effects one by one so that new effect chain is created on new thread with
3123 // correct buffer sizes and audio parameters and effect engines reconfigured accordingly
3126 sp<EffectModule> effect = chain->getEffectFromId_l(0);
3129 while (effect != 0) {
3130 srcThread->removeEffect_l(effect);
3131 removed.add(effect);
3132 status = dstThread->addEffect_l(effect);
3136 // removeEffect_l() has stopped the effect if it was active so it must be restarted
3137 if (effect->state() == EffectModule::ACTIVE ||
3138 effect->state() == EffectModule::STOPPING) {
3139 effect->start();
3141 // if the move request is not received from audio policy manager, the effect must be
3144 dstChain = effect->chain().promote();
3146 ALOGW("moveEffectChain_l() cannot get chain from effect %p", effect.get());
3153 AudioSystem::unregisterEffect(effect->id());
3154 AudioSystem::registerEffect(&effect->desc(),
3158 effect->id());
3159 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
3161 effect = chain->getEffectFromId_l(0);
3174 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
3239 bool AudioFlinger::updateOrphanEffectChains(const sp<AudioFlinger::EffectModule>& effect)
3242 audio_session_t session = effect->sessionId();
3247 if (chain->removeEffect_l(effect, true) == 0) {
3248 ALOGV("updateOrphanEffectChains removing effect chain at index %zd", index);