AudioManager  7.5.11
Native Application Runtime Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
The relation of sources & sinks with the AudioManager

Class diagramm of the relation between sources, sinks and the AudioManager

In general, the relationship is defined as well as the interfaces that are used to communicate the informations back and forth. But since the exchange of these informations is abstracted by the RoutingPlugins, the architecture cannot define explicit mechanisms here.
A lot of attributes that are part of sources and sinks belong logical to them and might be implemented by the RoutingPlugin. The relation between sources, sinks and the AudioManagerDaemon is shown in this Overview Class Diagram .

The REAL interaction

A lot of information is related to sources and sinks as can be seen here: Overview Class Diagram . But not all informations are actually communicated to the sources and sinks since the routing adaptor will take care of handling some of these informations.
Here are some informations that is believed to be actually communicated to the sources and sinks:

Connection Formats

The am::am_CustomAvailabilityReason_t formats for a connection are chosen when the connection is build up. So if there are more than one possbilities that can be used for a connection (am::am_Sink_s::listConnectionFormats and am::am_Source_s::listConnectionFormats) the correct one is chosen upon a connect. If this is relevant to the sources and sinks, the routingAdaptor must communicate to the sources and sinks accordingly.

SettingConnectionFormats.png

Source States

This diagrams shows the sequence that is used to set the sources states am::am_SourceState_e. Since the source states are set by the AudioManagerController, the exact behavior is product specific.

SourceStates.png

Availability

This diagram shows the sequence that is used to communicate the availability am::am_Availability_s. from the sources. Please note that the availability reasons am::am_CustomAvailabilityReason_t are product specific.

AvailabilityofSources.png

Here is the same for the sinks:

AvailabilityofSinks.png

Volumes & MainVolumes

Volumes am::am_volume_t are set to the sinks, mainly, but depending on the used audio routing system it might be that they can be set on the source level as well. If this is not the case, proper measures must be taken to do this. Changes of a source:

VolumeChangesofSources.png

Changes of a sink:

VolumeChangesofSinks.png

SoundProperties

The am::am_SoundProperty_s are set to the sources and sinks. More information about SoundProperties can be found here: Properties. Changes of a sink:

SoundPropertyChangeofSink.png

Changes of a source:

SoundPropertyChangeofSource.png

Interrupt States

The am::am_InterruptState_e are reported by low level interrupts from the sources to the AudioManagement. More details here: Interrups & Low Level Interrupts .

InterruptStatusChange.png