Searched refs:curve (Results 1 - 1 of 1) sorted by relevance

/hardware/libhardware_legacy/audio/
H A DAudioPolicyManagerBase.cpp3042 const VolumeCurvePoint *curve = streamDesc.mVolumeCurve[deviceCategory]; local
3045 int nbSteps = 1 + curve[VOLMAX].mIndex -
3046 curve[VOLMIN].mIndex;
3050 // find what part of the curve this index volume belongs to, or if it's out of bounds
3052 if (volIdx < curve[VOLMIN].mIndex) { // out of bounds
3054 } else if (volIdx < curve[VOLKNEE1].mIndex) {
3056 } else if (volIdx < curve[VOLKNEE2].mIndex) {
3058 } else if (volIdx <= curve[VOLMAX].mIndex) {
3065 float decibels = curve[segment].mDBAttenuation +
3066 ((float)(volIdx - curve[segmen
[all...]

Completed in 29 milliseconds