commit | dce82ab7bfd5ec7c1ef658825c18506a89e567d6 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Tue Feb 07 16:02:33 2017 -0800 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Fri Feb 17 10:08:53 2017 -0800 |
tree | ed2364b70e145d0e98bf337da2bc390a8695a692 | |
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