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

Skip to content
Commit 7a196eb6 authored by liuxiaoyu7's avatar liuxiaoyu7
Browse files

[AudioPolicy][engineconfigurable] audioattribute should match audio_stream_assist first



if app play audio using uage AUDIO_USAGE_ASSISTANT,
attribute to stream should return audio_stream_assist first instead of audio_stream_music

audio_stream_assist:
 attrBuilder.setUsage(AudioAttributes.USAGE_ASSISTANT);
 attrBuilder.setContentType(AudioAttributes.CONTENT_TYPE_SPEECH);

audio_stream_music:
attrBuilder.setUsage(AudioAttributes.USAGE_ASSISTANT);

Signed-off-by: default avatarliuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: Ied2f0c076c53ecfd374fb58b48f0e5da07e3c7a8
parent ec49ef40
Loading
Loading
Loading
Loading
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