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

Commit bde85d05 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android Git Automerger
Browse files

am 5458756a: Merge "Track volume should be maintained even if track is restored"

* commit '5458756a':
  Track volume should be maintained even if track is restored
parents 42495ddc 5458756a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1218,7 +1218,11 @@ status_t AudioTrack::createTrack_l()
        mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF);
        mProxy = mStaticProxy;
    }
    mProxy->setVolumeLR(GAIN_MINIFLOAT_PACKED_UNITY);

    mProxy->setVolumeLR(gain_minifloat_pack(
            gain_from_float(mVolume[AUDIO_INTERLEAVE_LEFT]),
            gain_from_float(mVolume[AUDIO_INTERLEAVE_RIGHT])));

    mProxy->setSendLevel(mSendLevel);
    mProxy->setSampleRate(mSampleRate);
    mProxy->setMinimum(mNotificationFramesAct);