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

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

am aef46aa8: am bde85d05: am 5458756a: Merge "Track volume should be...

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

* commit 'aef46aa8':
  Track volume should be maintained even if track is restored
parents a0f1d394 aef46aa8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1226,7 +1226,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);