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

Commit 5458756a authored by Glenn Kasten's avatar Glenn Kasten Committed by Gerrit Code Review
Browse files

Merge "Track volume should be maintained even if track is restored"

parents 592f3bc8 e6a9d658
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);