Home
last modified time | relevance | path

Searched refs:envDb (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPFrequency.cpp540 const float envDb = linearToDb(fEnv); in processFirstStages() local
541 float newLevelDb = envDb; in processFirstStages()
550 if (envDb > thresholdDb + kneeWidthDbHalf) { in processFirstStages()
552 newLevelDb = envDb + ((1 / ratio) - 1) * (envDb - thresholdDb); in processFirstStages()
553 } else if (envDb > thresholdDb - kneeWidthDbHalf) { in processFirstStages()
555 float temp = (envDb - thresholdDb + kneeWidthDbHalf); in processFirstStages()
556 newLevelDb = envDb + ((1 / ratio) - 1) * in processFirstStages()
558 } else if (envDb < noiseGateThresholdDb) { in processFirstStages()
561 expanderRatio * (noiseGateThresholdDb - envDb); in processFirstStages()
564 float newFactor = dBtoLinear(newLevelDb - envDb); in processFirstStages()
[all …]