Home | History | Annotate | Download | only in audio

Lines Matching refs:pDesc

1252     EffectDescriptor *pDesc = new EffectDescriptor();
1253 memcpy (&pDesc->mDesc, desc, sizeof(effect_descriptor_t));
1254 pDesc->mIo = io;
1255 pDesc->mStrategy = (routing_strategy)strategy;
1256 pDesc->mSession = session;
1257 pDesc->mEnabled = false;
1259 mEffects.add(id, pDesc);
1272 EffectDescriptor *pDesc = mEffects.valueAt(index);
1274 setEffectEnabled(pDesc, false);
1276 if (mTotalEffectsMemory < pDesc->mDesc.memoryUsage) {
1278 pDesc->mDesc.memoryUsage, mTotalEffectsMemory);
1279 pDesc->mDesc.memoryUsage = mTotalEffectsMemory;
1281 mTotalEffectsMemory -= pDesc->mDesc.memoryUsage;
1283 pDesc->mDesc.name, id, pDesc->mDesc.memoryUsage, mTotalEffectsMemory);
1286 delete pDesc;
1302 status_t AudioPolicyManagerBase::setEffectEnabled(EffectDescriptor *pDesc, bool enabled)
1304 if (enabled == pDesc->mEnabled) {
1311 if (mTotalEffectsCpuLoad + pDesc->mDesc.cpuLoad > getMaxEffectsCpuLoad()) {
1313 pDesc->mDesc.name, (float)pDesc->mDesc.cpuLoad/10);
1316 mTotalEffectsCpuLoad += pDesc->mDesc.cpuLoad;
1319 if (mTotalEffectsCpuLoad < pDesc->mDesc.cpuLoad) {
1321 pDesc->mDesc.cpuLoad, mTotalEffectsCpuLoad);
1322 pDesc->mDesc.cpuLoad = mTotalEffectsCpuLoad;
1324 mTotalEffectsCpuLoad -= pDesc->mDesc.cpuLoad;
1327 pDesc->mEnabled = enabled;
1334 const EffectDescriptor * const pDesc = mEffects.valueAt(i);
1335 if (pDesc->mEnabled && (pDesc->mStrategy == STRATEGY_MEDIA) &&
1336 ((pDesc->mDesc.flags & EFFECT_FLAG_OFFLOAD_SUPPORTED) == 0)) {
1338 pDesc->mDesc.name, pDesc->mSession);