Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
lpf@google.com
pavlis@google.com
clarabayarri@google.com
per-file SeekBarVolumizer.java = jmtrivi@google.com
\ No newline at end of file
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment