Send stream volume to fast track
Bug: 77892019
Test: Play Pokemon GO and change volume
Change-Id: I53055724d5885a4283fdb8670f76fcc8d98fb247
Signed-off-by: Kevin Rocard <krocard@google.com>
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 43a8b50..65d51d6 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -4395,7 +4395,7 @@
float volume = masterVolume
* mStreamTypes[track->streamType()].volume
* vh;
- track->mCachedVolume = masterVolume;
+ track->mCachedVolume = volume;
gain_minifloat_packed_t vlr = proxy->getVolumeLR();
float vlf = volume * float_from_gain(gain_minifloat_unpack_left(vlr));
float vrf = volume * float_from_gain(gain_minifloat_unpack_right(vlr));