diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2017-02-07 16:02:33 -0800 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2017-02-17 10:08:53 -0800 |
commit | dce82ab7bfd5ec7c1ef658825c18506a89e567d6 (patch) | |
tree | ed2364b70e145d0e98bf337da2bc390a8695a692 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | c3c62b30725daa2bde87b62331e94fa2fece1079 (diff) |
Audio focus enforcement: use VolumeShaper for ducking
When ducking players, check whether their content type
is speech, or the player is a SoundPool. If yes, do
not enforce ducking and leave it to the app. Otherwise
use a VolumeShaper to duck, and keep it in a list
so it can be reused to unduck (by using the REVERSE
operation).
Test: play a notification while an AudioTrack is playing
Bug 30258418
Change-Id: I7e0204ad38d4ef48e88ffc45533caccfc6e279b5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions