commit | 23393ec73875c22a73d777d81b9e10475779f9c5 | [log] [tgz] |
---|---|---|
author | Chris Kuiper <ckuiper@google.com> | Sat Sep 23 01:36:29 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Sep 23 01:36:29 2017 |
tree | 35c696dc5f0a301b2fc57db47a182e9d04ab567e | |
parent | 5b41612edd88c44f77a686d85f0a8d7cc42ba56e [diff] |
[Chromecast] Use new AThings volume table access functions This hooks up the VolumeToDbFS and DbFSToVolume functions to use the Android volume tables using a special Android Things system API. Eventually (in Android P) such access will be through a public API. Note that the volume_control API assumes only one table for all stream types but Android actually has separate tables for separate types. We deal with this by assuming the STREAM_MUSIC table for all levels into and out of the volume_control API, and internally remapping them to their correct curves. This change also takes advantage of the new APIs to properly calculate the ducking limiter value. This is necessary since the AudioTrack.setVolume() multiplier is directly applied to the stream data instead of being mapped through the volume tables first. Bug: [internal] b/65457547 Test: Changing volumes up and down, observing results to TTS volume via logs and listening. Testing ducking at all volume levels. Change-Id: Id3ffbf4e475a9d5565da1cc60d683b985e6f6cc3 Reviewed-on: https://chromium-review.googlesource.com/668809 Reviewed-by: Luke Halliwell <halliwell@chromium.org> Commit-Queue: Chris Kuiper <ckuiper@chromium.org> Cr-Commit-Position: refs/heads/master@{#503926}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .