Home | History | Annotate | Download | only in audio

Lines Matching full:pdesc

883     EffectDescriptor *pDesc = new EffectDescriptor();
884 memcpy (&pDesc->mDesc, desc, sizeof(effect_descriptor_t));
885 pDesc->mIo = io;
886 pDesc->mStrategy = (routing_strategy)strategy;
887 pDesc->mSession = session;
888 pDesc->mEnabled = false;
890 mEffects.add(id, pDesc);
903 EffectDescriptor *pDesc = mEffects.valueAt(index);
905 setEffectEnabled(pDesc, false);
907 if (mTotalEffectsMemory < pDesc->mDesc.memoryUsage) {
909 pDesc->mDesc.memoryUsage, mTotalEffectsMemory);
910 pDesc->mDesc.memoryUsage = mTotalEffectsMemory;
912 mTotalEffectsMemory -= pDesc->mDesc.memoryUsage;
914 pDesc->mDesc.name, id, pDesc->mDesc.memoryUsage, mTotalEffectsMemory);
917 delete pDesc;
933 status_t AudioPolicyManagerBase::setEffectEnabled(EffectDescriptor *pDesc, bool enabled)
935 if (enabled == pDesc->mEnabled) {
942 if (mTotalEffectsCpuLoad + pDesc->mDesc.cpuLoad > getMaxEffectsCpuLoad()) {
944 pDesc->mDesc.name, (float)pDesc->mDesc.cpuLoad/10);
947 mTotalEffectsCpuLoad += pDesc->mDesc.cpuLoad;
950 if (mTotalEffectsCpuLoad < pDesc->mDesc.cpuLoad) {
952 pDesc->mDesc.cpuLoad, mTotalEffectsCpuLoad);
953 pDesc->mDesc.cpuLoad = mTotalEffectsCpuLoad;
955 mTotalEffectsCpuLoad -= pDesc->mDesc.cpuLoad;
958 pDesc->mEnabled = enabled;