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