Lines Matching refs:effect
443 void disconnectEffect(const sp< EffectModule>& effect,
450 // effect
455 // get effect chain corresponding to session Id.
459 // add an effect chain to the chain list (mEffectChains)
461 // remove an effect chain from the chain list (mEffectChains)
463 // lock mall effect chains Mutexes. Must be called before releasing the
467 // unlock effect chains after process
469 // set audio mode to all effect chains
471 // get effect module with corresponding ID on specified audio session
473 // add and effect module. Also creates the effect chain is none exists for
475 status_t addEffect_l(const sp< EffectModule>& effect);
476 // remove and effect module. Also removes the effect chain is this was the last
477 // effect
478 void removeEffect_l(const sp< EffectModule>& effect);
479 // detach all tracks connected to an auxiliary effect
488 // suspend or restore effect according to the type of effect passed. a NULL
493 // check if some effects must be suspended/restored when an effect is enabled
495 void checkSuspendOnEffectEnabled(const sp<EffectModule>& effect,
498 void checkSuspendOnEffectEnabled_l(const sp<EffectModule>& effect,
505 // entry describing an effect being suspended in mSuspendedSessions keyed vector
511 effect_uuid_t mType; // effect type UUID
521 // updated mSuspendedSessions when an effect suspended or restored
525 // check if some effects must be suspended when an effect chain is added
1050 // The EffectModule class is a wrapper object controlling the effect engine implementation
1051 // in the effect library. It prevents concurrent calls to process() and command() functions
1053 // to all client applications using this effect and notifies applications of effect state,
1055 // reset, enable, disable commands to effect engine and provide volume
1057 // When controlling an auxiliary effect, the EffectModule also provides an input buffer used by
1138 // Maximum time allocated to effect engines to complete the turn off sequence
1149 wp<EffectChain> mChain; // parent effect chain
1152 effect_descriptor_t mDescriptor;// effect descriptor received from effect engine
1158 uint32_t mMaxDisableWaitCnt; // maximum grace period before forcing an effect off after
1161 bool mSuspended; // effect is suspended: temporarily disabled by framework
1165 // to receive parameter updates, keeps track of effect control
1168 // an effect module.
1173 EffectHandle(const sp<EffectModule>& effect,
1194 // Give or take control of effect module
1197 // - enabled: state of the effect when control is passed
1211 sp<EffectModule> effect() { return mEffect; }
1227 int mPriority; // client application priority to control the effect
1228 bool mHasControl; // true if this handle is controlling the effect
1229 bool mEnabled; // cached enable state: needed when the effect is
1237 // are insert only. The EffectChain maintains an ordered list of effect module, the order corresponding
1238 // in the effect process order. When attached to a track (session ID != 0), it also provide it's own
1249 // minimum duration during which we force calling effect process when last track on
1250 // a session is stopped or removed to allow effect tail to be rendered
1302 // suspend effect of the given type
1307 // check if effects should be suspend or restored when a given effect is enable or disabled
1308 void checkSuspendOnEffectEnabled(const sp<EffectModule>& effect,
1327 // get a list of effect modules to suspend when an effect of the type
1330 // get an effect module if it is currently enable
1332 // true if the effect whose descriptor is passed can be suspended
1333 // OEMs can modify the rules implemented in this method to exclude specific effect
1338 Mutex mLock; // mutex protecting effect list
1339 Vector<sp<EffectModule> > mEffects; // list of effect modules
1345 int32_t mTailBufferCount; // current effect tail buffer count
1346 int32_t mMaxTailBuffers; // maximum effect tail buffers
1348 int mVolumeCtrlIdx; // index of insert effect having control over volume
1353 uint32_t mStrategy; // strategy for this effect chain
1354 // mSuspendedEffects lists all effect currently suspended in the chain
1355 // use effect type UUID timelow field as key. There is no real risk of identical
1356 // timeLow fields among effect type UUIDs.