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

Commit 2d03e29c authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Rongxuan Liu
Browse files

SeekBarVolumizer: Use TAG for sample sound

LeAudio configures its streams based on the audio metadata.
When user sets different volume with SeekBarVolumizer, LeAudio gets
metadata which are assign to valid scenarios like phone call/media and
tries to create stream for that scenario.
Issue happens when e.g. during media stream, user is changing volume
for ringtone or  conversational as it will result with stream
reconfiguration on the LeAudio side. This will stop stream for a moment
and creates lower quality stream for converstational.

With this patch,by adding "VX_AOSP_SAMPLESOUND" tag, LeAudio code has a chance
to behave correctly on sample sound.

Bug: 274106369
Test: Manual test
Tag: #feature

Change-Id: I5f7186c076a99cf712d82903fe584a6303d49ffa
parent c07823ad
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
lpf@google.com
pavlis@google.com
clarabayarri@google.com

per-file SeekBarVolumizer.java = jmtrivi@google.com
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -407,6 +407,7 @@ public class SeekBarVolumizer implements OnSeekBarChangeListener, Handler.Callba
                        mRingtone.setAudioAttributes(new AudioAttributes.Builder(mRingtone
                                .getAudioAttributes())
                                .setFlags(AudioAttributes.FLAG_BYPASS_MUTE)
                                .addTag("VX_AOSP_SAMPLESOUND")
                                .build());
                        mRingtone.play();
                    } catch (Throwable e) {