Searched refs:mCurvePoints (Results 1 – 2 of 2) sorted by relevance
28 ALOG_ASSERT(!mCurvePoints.isEmpty(), "Invalid volume curve"); in volIndexToDb()47 size_t nbCurvePoints = mCurvePoints.size(); in volIndexToDb()61 int nbSteps = 1 + mCurvePoints[nbCurvePoints - 1].mIndex - mCurvePoints[0].mIndex; in volIndexToDb()66 size_t indexInUiPosition = mCurvePoints.orderOf(CurvePoint(volIdx, 0)); in volIndexToDb()69 return mCurvePoints[nbCurvePoints - 1].mAttenuationInMb / 100.0f; in volIndexToDb()72 if (indexInUiPosition != mCurvePoints[0].mIndex) { in volIndexToDb()75 return mCurvePoints[0].mAttenuationInMb / 100.0f; in volIndexToDb()78 float decibels = (mCurvePoints[indexInUiPosition - 1].mAttenuationInMb / 100.0f) + in volIndexToDb()79 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb()80 ( ((mCurvePoints[indexInUiPosition].mAttenuationInMb / 100.0f) - in volIndexToDb()[all …]
56 void add(const CurvePoint &point) { mCurvePoints.add(point); } in add()66 SortedVector<CurvePoint> mCurvePoints; variable