Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0a86f8b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Modify the calculation method of the volume DB value." into main am:...

Merge "Modify the calculation method of the volume DB value." into main am: 95bbd040 am: 0b0098ce

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2583215



Change-Id: Iea02f30bfe3f83271a342bdd3a6de911afb2a847
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 390c3e90 0b0098ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ float VolumeCurve::volIndexToDb(int indexInUi, int volIndexMin, int volIndexMax)
        return mCurvePoints[nbCurvePoints - 1].mAttenuationInMb / 100.0f;
    }
    if (indexInUiPosition == 0) {
        if (indexInUiPosition != mCurvePoints[0].mIndex) {
        if ((size_t)volIdx != mCurvePoints[0].mIndex) {
            return VOLUME_MIN_DB; // out of bounds
        }
        return mCurvePoints[0].mAttenuationInMb / 100.0f;