Package: android.hardware.automotive.audiocontrol@1.0

IAudioControl

interface IAudioControl

Interacts with the car's audio subsystem to manage audio sources and volumes

Methods

getBusForContext

getBusForContext (ContextNumber contextNumber)
generates (int32_t busNumber)

Called at startup once per context to get the mapping from ContextNumber to busAddress.This lets the car tell the framework to which physical output stream each context should be routed.

For every context, a valid bus number(0 - num busses-1)must be returned.If an unrecognized contextNumber is encountered, then -1 shall be returned.

Details
Parameters
contextNumber
Generates
busNumber

setBalanceTowardRight

oneway setBalanceTowardRight (float value)

Control the right/left balance setting of the car speakers.

This is intended to shift the speaker volume toward the right(+)or left(-)side of the car.0.0 means "centered".+1.0 means fully right.-1.0 means fully left.

A value outside the range -1 to 1 must be clamped by the implementation to the -1 to 1 range.

Details
RPC mode
oneway
Parameters
value

setFadeTowardFront

oneway setFadeTowardFront (float value)

Control the fore/aft fade setting of the car speakers.

This is intended to shift the speaker volume toward the front(+)or back(-)of the car.0.0 means "centered".+1.0 means fully forward.-1.0 means fully rearward.

A value outside the range -1 to 1 must be clamped by the implementation to the -1 to 1 range.

Details
RPC mode
oneway
Parameters
value