Chromecast To Get Better Integration With “Android of Things”

Google is prepping Chromecast for better integration with Android P and Android Things (Android for Internet of Things).

This showed up as a code change request on Chromium repository where Google stores Chromecast code as well. Chromecast, if you remember, shares code roots with Chrome OS.

From the code change request log:

[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.

This code change talks about implementing a new API that will synchronize volume levels between Android Things devices and Chromecast.

Random question. Will Google eventually make a Chromecast that runs Android Things, instead of Google Cast?

In Category: News

Chromecast 2

Show 0 Comments
No comments yet. Be the first.

Leave a Comment