AudioManager  7.6.6
Native Application Runtime Environment
CAmControlReceiver.h
Go to the documentation of this file.
1 
24 #ifndef CONTRONLRECEIVER_H_
25 #define CONTRONLRECEIVER_H_
26 
27 #include "IAmControl.h"
28 
29 namespace am
30 {
31 
32 class CAmSocketHandler;
33 class IAmDatabaseHandler;
34 class CAmRoutingSender;
35 class CAmCommandSender;
36 class CAmRouter;
37 class CAmNodeStateCommunicator;
38 
43 {
44 public:
45  CAmControlReceiver(IAmDatabaseHandler *iDatabaseHandler, CAmRoutingSender *iRoutingSender, CAmCommandSender *iCommandSender, CAmSocketHandler *iSocketHandler, CAmRouter* iRouter);
47  am_Error_e getRoute(const bool onlyfree, const am_sourceID_t sourceID, const am_sinkID_t sinkID, std::vector<am_Route_s>& returnList);
48  am_Error_e connect(am_Handle_s& handle, am_connectionID_t& connectionID, const am_CustomConnectionFormat_t format, const am_sourceID_t sourceID, const am_sinkID_t sinkID);
49  am_Error_e disconnect(am_Handle_s& handle, const am_connectionID_t connectionID);
50  am_Error_e crossfade(am_Handle_s& handle, const am_HotSink_e hotSource, const am_crossfaderID_t crossfaderID, const am_CustomRampType_t rampType, const am_time_t rampTime);
51  am_Error_e abortAction(const am_Handle_s handle);
52  am_Error_e setSourceState(am_Handle_s& handle, const am_sourceID_t sourceID, const am_SourceState_e state);
53  am_Error_e setSinkVolume(am_Handle_s& handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_CustomRampType_t ramp, const am_time_t time);
54  am_Error_e setSourceVolume(am_Handle_s& handle, const am_sourceID_t sourceID, const am_volume_t volume, const am_CustomRampType_t rampType, const am_time_t time);
55  am_Error_e setSinkSoundProperties(am_Handle_s& handle, const am_sinkID_t sinkID, const std::vector<am_SoundProperty_s>& soundProperty);
56  am_Error_e setSinkSoundProperty(am_Handle_s& handle, const am_sinkID_t sinkID, const am_SoundProperty_s& soundProperty);
57  am_Error_e setSourceSoundProperties(am_Handle_s& handle, const am_sourceID_t sourceID, const std::vector<am_SoundProperty_s>& soundProperty);
58  am_Error_e setSourceSoundProperty(am_Handle_s& handle, const am_sourceID_t sourceID, const am_SoundProperty_s& soundProperty);
59  am_Error_e setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState);
60  am_Error_e enterDomainDB(const am_Domain_s& domainData, am_domainID_t& domainID);
61  am_Error_e enterMainConnectionDB(const am_MainConnection_s& mainConnectionData, am_mainConnectionID_t& connectionID);
62  am_Error_e enterSinkDB(const am_Sink_s& sinkData, am_sinkID_t& sinkID);
63  am_Error_e enterCrossfaderDB(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID);
64  am_Error_e enterGatewayDB(const am_Gateway_s& gatewayData, am_gatewayID_t& gatewayID);
65  am_Error_e enterConverterDB(const am_Converter_s & converterData, am_converterID_t & converterID);
66  am_Error_e enterSourceDB(const am_Source_s& sourceData, am_sourceID_t& sourceID);
67  am_Error_e enterSinkClassDB(const am_SinkClass_s& sinkClass, am_sinkClass_t& sinkClassID);
68  am_Error_e enterSourceClassDB(am_sourceClass_t& sourceClassID, const am_SourceClass_s& sourceClass);
71  am_Error_e enterSystemPropertiesListDB(const std::vector<am_SystemProperty_s>& listSystemProperties);
72  am_Error_e changeMainConnectionRouteDB(const am_mainConnectionID_t mainconnectionID, const std::vector<am_connectionID_t>& listConnectionID);
73  am_Error_e changeMainConnectionStateDB(const am_mainConnectionID_t mainconnectionID, const am_ConnectionState_e connectionState);
74  am_Error_e changeSinkMainVolumeDB(const am_mainVolume_t mainVolume, const am_sinkID_t sinkID);
75  am_Error_e changeSinkAvailabilityDB(const am_Availability_s& availability, const am_sinkID_t sinkID);
76  am_Error_e changDomainStateDB(const am_DomainState_e domainState, const am_domainID_t domainID);
77  am_Error_e changeSinkMuteStateDB(const am_MuteState_e muteState, const am_sinkID_t sinkID);
80  am_Error_e changeSourceAvailabilityDB(const am_Availability_s& availability, const am_sourceID_t sourceID);
83  am_Error_e removeSinkDB(const am_sinkID_t sinkID);
84  am_Error_e removeSourceDB(const am_sourceID_t sourceID);
85  am_Error_e removeGatewayDB(const am_gatewayID_t gatewayID);
88  am_Error_e removeDomainDB(const am_domainID_t domainID);
89  am_Error_e removeSinkClassDB(const am_sinkClass_t sinkClassID);
90  am_Error_e removeSourceClassDB(const am_sourceClass_t sourceClassID);
91  am_Error_e getSourceClassInfoDB(const am_sourceID_t sourceID, am_SourceClass_s& classInfo) const;
92  am_Error_e getSinkClassInfoDB(const am_sinkID_t sinkID, am_SinkClass_s& sinkClass) const;
93  am_Error_e getSinkInfoDB(const am_sinkID_t sinkID, am_Sink_s& sinkData) const;
94  am_Error_e getSourceInfoDB(const am_sourceID_t sourceID, am_Source_s& sourceData) const;
95  am_Error_e getGatewayInfoDB(const am_gatewayID_t gatewayID, am_Gateway_s& gatewayData) const;
96  am_Error_e getConverterInfoDB(const am_converterID_t converterID, am_Converter_s& converterData) const;
97  am_Error_e getCrossfaderInfoDB(const am_crossfaderID_t crossfaderID, am_Crossfader_s& crossfaderData) const;
98  am_Error_e getMainConnectionInfoDB(const am_mainConnectionID_t mainConnectionID, am_MainConnection_s& mainConnectionData) const;
99  am_Error_e getListSinksOfDomain(const am_domainID_t domainID, std::vector<am_sinkID_t>& listSinkID) const;
100  am_Error_e getListSourcesOfDomain(const am_domainID_t domainID, std::vector<am_sourceID_t>& listSourceID) const;
101  am_Error_e getListCrossfadersOfDomain(const am_domainID_t domainID, std::vector<am_crossfaderID_t>& listCrossfadersID) const;
102  am_Error_e getListGatewaysOfDomain(const am_domainID_t domainID, std::vector<am_gatewayID_t>& listGatewaysID) const;
103  am_Error_e getListConvertersOfDomain(const am_domainID_t domainID, std::vector<am_converterID_t>& listConverterID) const;
104  am_Error_e getListMainConnections(std::vector<am_MainConnection_s>& listMainConnections) const;
105  am_Error_e getListDomains(std::vector<am_Domain_s>& listDomains) const;
106  am_Error_e getListConnections(std::vector<am_Connection_s>& listConnections) const;
107  am_Error_e getListSinks(std::vector<am_Sink_s>& listSinks) const;
108  am_Error_e getListSources(std::vector<am_Source_s>& listSources) const;
109  am_Error_e getListSourceClasses(std::vector<am_SourceClass_s>& listSourceClasses) const;
110  am_Error_e getListHandles(std::vector<am_Handle_s>& listHandles) const;
111  am_Error_e getListCrossfaders(std::vector<am_Crossfader_s>& listCrossfaders) const;
112  am_Error_e getListGateways(std::vector<am_Gateway_s>& listGateways) const;
113  am_Error_e getListConverters(std::vector<am_Converter_s>& listConverters) const;
114  am_Error_e getListSinkClasses(std::vector<am_SinkClass_s>& listSinkClasses) const;
115  am_Error_e getListSystemProperties(std::vector<am_SystemProperty_s>& listSystemProperties) const;
116  void setCommandReady();
117  void setCommandRundown();
118  void setRoutingReady();
119  void setRoutingRundown();
120  void confirmControllerReady(const am_Error_e error);
121  void confirmControllerRundown(const am_Error_e error);
123  void getInterfaceVersion(std::string& version) const;
124  am_Error_e changeSourceDB(const am_sourceID_t sourceID, const am_sourceClass_t sourceClassID, const std::vector<am_SoundProperty_s>& listSoundProperties, const std::vector<am_CustomConnectionFormat_t>& listConnectionFormats, const std::vector<am_MainSoundProperty_s>& listMainSoundProperties) ;
125  am_Error_e changeSinkDB(const am_sinkID_t sinkID, const am_sinkClass_t sinkClassID, const std::vector<am_SoundProperty_s>& listSoundProperties, const std::vector<am_CustomConnectionFormat_t>& listConnectionFormats, const std::vector<am_MainSoundProperty_s>& listMainSoundProperties) ;
126  am_Error_e changeGatewayDB(const am_gatewayID_t gatewayID, const std::vector<am_CustomConnectionFormat_t>& listSourceConnectionFormats, const std::vector<am_CustomConnectionFormat_t>& listSinkConnectionFormats, const std::vector<bool>& convertionMatrix) ;
127  am_Error_e changeConverterDB(const am_converterID_t converterID, const std::vector<am_CustomConnectionFormat_t>& listSourceConnectionFormats, const std::vector<am_CustomConnectionFormat_t>& listSinkConnectionFormats, const std::vector<bool>& convertionMatrix);
128  am_Error_e setVolumes(am_Handle_s& handle, const std::vector<am_Volumes_s>& listVolumes) ;
129  am_Error_e setSinkNotificationConfiguration(am_Handle_s& handle, const am_sinkID_t sinkID, const am_NotificationConfiguration_s& notificationConfiguration) ;
130  am_Error_e setSourceNotificationConfiguration(am_Handle_s& handle, const am_sourceID_t sourceID, const am_NotificationConfiguration_s& notificationConfiguration) ;
131  void sendMainSinkNotificationPayload(const am_sinkID_t sinkID, const am_NotificationPayload_s& notificationPayload) ;
132  void sendMainSourceNotificationPayload(const am_sourceID_t sourceID, const am_NotificationPayload_s& notificationPayload) ;
133  am_Error_e changeMainSinkNotificationConfigurationDB(const am_sinkID_t sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) ;
134  am_Error_e changeMainSourceNotificationConfigurationDB(const am_sourceID_t sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) ;
135  am_Error_e getListMainSinkSoundProperties(const am_sinkID_t sinkID, std::vector<am_MainSoundProperty_s>& listSoundproperties) const;
136  am_Error_e getListMainSourceSoundProperties(const am_sourceID_t sourceID, std::vector<am_MainSoundProperty_s>& listSoundproperties) const;
137  am_Error_e getListSinkSoundProperties(const am_sinkID_t sinkID, std::vector<am_SoundProperty_s>& listSoundproperties) const;
138  am_Error_e getListSourceSoundProperties(const am_sourceID_t sourceID, std::vector<am_SoundProperty_s>& listSoundproperties) const;
139  am_Error_e getMainSinkSoundPropertyValue(const am_sinkID_t sinkID, const am_CustomMainSoundPropertyType_t propertyType, int16_t& value) const;
140  am_Error_e getSinkSoundPropertyValue(const am_sinkID_t sinkID, const am_CustomSoundPropertyType_t propertyType, int16_t& value) const;
141  am_Error_e getMainSourceSoundPropertyValue(const am_sourceID_t sourceID, const am_CustomMainSoundPropertyType_t propertyType, int16_t& value) const;
142  am_Error_e getSourceSoundPropertyValue(const am_sourceID_t sourceID, const am_CustomSoundPropertyType_t propertyType, int16_t& value) const;
143  am_Error_e resyncConnectionState(const am_domainID_t domainID, std::vector<am_Connection_s>& listOfExistingConnections);
144  am_Error_e removeHandle(const am_Handle_s handle);
145 
146 private:
147  IAmDatabaseHandler* mDatabaseHandler;
148  CAmRoutingSender* mRoutingSender;
149  CAmCommandSender* mCommandSender;
150  CAmSocketHandler* mSocketHandler;
151  CAmRouter* mRouter;
152  CAmNodeStateCommunicator* mNodeStateCommunicator;
153 };
154 
155 }
156 
157 #endif /* CONTRONLRECEIVER_H_ */
am_Error_e changeSinkMuteStateDB(const am_MuteState_e muteState, const am_sinkID_t sinkID)
changes the mute state of a sink
Implements the RoutingSendInterface.
uint16_t am_connectionID_t
a connection ID
uint16_t am_CustomSoundPropertyType_t
Within genivi only the some example properties are defined.
am_Error_e getListConverters(std::vector< am_Converter_s > &listConverters) const
returns a list of converters
A Common-API wrapper class, which loads the common-api runtime and instantiates all necessary objects...
am_Error_e changeGatewayDB(const am_gatewayID_t gatewayID, const std::vector< am_CustomConnectionFormat_t > &listSourceConnectionFormats, const std::vector< am_CustomConnectionFormat_t > &listSinkConnectionFormats, const std::vector< bool > &convertionMatrix)
changes Gateway Data
am_Error_e getListConnections(std::vector< am_Connection_s > &listConnections) const
returns a complete list of all Connections
uint16_t am_sinkClass_t
void sendMainSourceNotificationPayload(const am_sourceID_t sourceID, const am_NotificationPayload_s &notificationPayload)
Sends out the main notificiation of a source.
am_Error_e
the errors of the audiomanager.
am_Error_e getListMainConnections(std::vector< am_MainConnection_s > &listMainConnections) const
returns a complete list of all MainConnections
This struct holds information about the configuration for notifications.
am_Error_e setSinkSoundProperties(am_Handle_s &handle, const am_sinkID_t sinkID, const std::vector< am_SoundProperty_s > &soundProperty)
is used to set several sinkSoundProperties at a time
Copyright (C) 2012 - 2014, BMW AG.
am_Error_e getRoute(const bool onlyfree, const am_sourceID_t sourceID, const am_sinkID_t sinkID, std::vector< am_Route_s > &returnList)
calculates a route from source to sink.
struct describing source classes
am_Error_e getListCrossfaders(std::vector< am_Crossfader_s > &listCrossfaders) const
returns a list of all crossfaders
am_Error_e setVolumes(am_Handle_s &handle, const std::vector< am_Volumes_s > &listVolumes)
with this function, setting of multiple volumes at a time is done.
This struct describes the attribiutes of a sink.
This struct holds the payload of a notification.
am_Error_e removeSinkDB(const am_sinkID_t sinkID)
removes a sink from the DB
am_Error_e getMainSourceSoundPropertyValue(const am_sourceID_t sourceID, const am_CustomMainSoundPropertyType_t propertyType, int16_t &value) const
This function retrieves the value of a source Mainsoundproperty.
am_Error_e getListGateways(std::vector< am_Gateway_s > &listGateways) const
returns a list of gateways
This struct describes the attribiutes of a domain.
am_Error_e setSourceSoundProperty(am_Handle_s &handle, const am_sourceID_t sourceID, const am_SoundProperty_s &soundProperty)
is used to set sourceSoundProperties
am_Error_e getListDomains(std::vector< am_Domain_s > &listDomains) const
returns a complete list of all domains
am_Error_e setSourceVolume(am_Handle_s &handle, const am_sourceID_t sourceID, const am_volume_t volume, const am_CustomRampType_t rampType, const am_time_t time)
with this function, setting of source volumes is done.
Implements autorouting algorithm for connecting sinks and sources via different audio domains...
Definition: CAmRouter.h:159
am_Error_e getSinkSoundPropertyValue(const am_sinkID_t sinkID, const am_CustomSoundPropertyType_t propertyType, int16_t &value) const
This function retrieves the value of a sink soundproperty.
am_Error_e changeSourceClassInfoDB(const am_SourceClass_s &sourceClass)
changes class information of a sourceClass.
am_Error_e changDomainStateDB(const am_DomainState_e domainState, const am_domainID_t domainID)
changes the domainstate of a domain
void getInterfaceVersion(std::string &version) const
This function returns the version of the interface.
am_Error_e getMainSinkSoundPropertyValue(const am_sinkID_t sinkID, const am_CustomMainSoundPropertyType_t propertyType, int16_t &value) const
This function retrieves the value of a sink Mainsoundproperty.
This class is used to receive all commands from the control interface.
uint16_t am_crossfaderID_t
a crossfader ID
am_Error_e getCrossfaderInfoDB(const am_crossfaderID_t crossfaderID, am_Crossfader_s &crossfaderData) const
returns sources and the sink of a crossfader
uint16_t am_CustomConnectionFormat_t
This type classifies the format in which data is exchanged within a connection.
The am::CAmSocketHandler implements a mainloop for the AudioManager.
am_Error_e removeSinkClassDB(const am_sinkClass_t sinkClassID)
removes a domain from the DB
void sendMainSinkNotificationPayload(const am_sinkID_t sinkID, const am_NotificationPayload_s &notificationPayload)
Sends out the main notificiation of a sink.
uint16_t am_CustomMainSoundPropertyType_t
Here are all SoundProperties that can be set via the CommandInterface.
am_Error_e changeMainSinkNotificationConfigurationDB(const am_sinkID_t sinkID, const am_NotificationConfiguration_s &mainNotificationConfiguration)
change the mainNotificationConfiguration of a sink
am_Error_e enterSinkDB(const am_Sink_s &sinkData, am_sinkID_t &sinkID)
enters a sink in the database.
am_Error_e getSourceInfoDB(const am_sourceID_t sourceID, am_Source_s &sourceData) const
returns the sourcekData of a source
am_Error_e enterMainConnectionDB(const am_MainConnection_s &mainConnectionData, am_mainConnectionID_t &connectionID)
enters a mainconnection in the database, creates and ID
am_Error_e disconnect(am_Handle_s &handle, const am_connectionID_t connectionID)
is used to disconnect a connection
void setRoutingRundown()
sets the routinginterface to the rundown state.
am_Error_e connect(am_Handle_s &handle, am_connectionID_t &connectionID, const am_CustomConnectionFormat_t format, const am_sourceID_t sourceID, const am_sinkID_t sinkID)
With this function, elementary connects can be triggered by the controller.
am_Error_e getSocketHandler(CAmSocketHandler *&socketHandler)
This function returns the pointer to the socketHandler.
struct that holds attribiutes of a mainconnection
am_Error_e getListCrossfadersOfDomain(const am_domainID_t domainID, std::vector< am_crossfaderID_t > &listCrossfadersID) const
returns all crossfaders of a domain
am_Error_e getSourceClassInfoDB(const am_sourceID_t sourceID, am_SourceClass_s &classInfo) const
returns the ClassInformation of a source
am_Error_e changeSystemPropertyDB(const am_SystemProperty_s &property)
changes a systemProperty
am_Error_e setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState)
sets the domain state of a domain
am_Error_e enterCrossfaderDB(const am_Crossfader_s &crossfaderData, am_crossfaderID_t &crossfaderID)
enters a crossfader in the database.
struct describing system properties
am_Error_e removeCrossfaderDB(const am_crossfaderID_t crossfaderID)
removes a crossfader from the DB
uint16_t am_converterID_t
a converter ID
am_Error_e enterSourceClassDB(am_sourceClass_t &sourceClassID, const am_SourceClass_s &sourceClass)
Enters a sourceClass into the database.
struct describung mainsound property
am_Error_e changeSinkDB(const am_sinkID_t sinkID, const am_sinkClass_t sinkClassID, const std::vector< am_SoundProperty_s > &listSoundProperties, const std::vector< am_CustomConnectionFormat_t > &listConnectionFormats, const std::vector< am_MainSoundProperty_s > &listMainSoundProperties)
Change the data of the sink.
void setCommandRundown()
sets the command interface into the rundown state.
am_Error_e enterSinkClassDB(const am_SinkClass_s &sinkClass, am_sinkClass_t &sinkClassID)
Enters a sourceClass into the database.
a handle is used for asynchronous operations and is uniquely assigned for each of this operations ...
am_Error_e resyncConnectionState(const am_domainID_t domainID, std::vector< am_Connection_s > &listOfExistingConnections)
Retrieves a list of all current active connections from a domain.
am_Error_e getListSinks(std::vector< am_Sink_s > &listSinks) const
returns a list of all sinks
am_Error_e changeMainSourceSoundPropertyDB(const am_MainSoundProperty_s &soundProperty, const am_sourceID_t sourceID)
changes the mainsourcesoundproperty of a sink
uint16_t am_sourceID_t
a source ID
struct describing the sound property
am_Error_e removeHandle(const am_Handle_s handle)
This function searches for a handle in the RoutingSender and removes it if found. ...
am_Error_e abortAction(const am_Handle_s handle)
with this method, all actions that have a handle assigned can be stopped.
am_Error_e getSinkClassInfoDB(const am_sinkID_t sinkID, am_SinkClass_s &sinkClass) const
returns the ClassInformation of a sink
am_Error_e enterConverterDB(const am_Converter_s &converterData, am_converterID_t &converterID)
enters a converter in the database.
am_Error_e changeSourceAvailabilityDB(const am_Availability_s &availability, const am_sourceID_t sourceID)
changes the availablility of a source
struct describing sinkclasses
am_Error_e setSinkNotificationConfiguration(am_Handle_s &handle, const am_sinkID_t sinkID, const am_NotificationConfiguration_s &notificationConfiguration)
set a sink notification configuration
am_Error_e getGatewayInfoDB(const am_gatewayID_t gatewayID, am_Gateway_s &gatewayData) const
return source and sink of a gateway
am_Error_e getListSourcesOfDomain(const am_domainID_t domainID, std::vector< am_sourceID_t > &listSourceID) const
returns all source of a domain
am_Error_e setSourceSoundProperties(am_Handle_s &handle, const am_sourceID_t sourceID, const std::vector< am_SoundProperty_s > &soundProperty)
is used to set several SourceSoundProperties at a time
am_Error_e getListSinkClasses(std::vector< am_SinkClass_s > &listSinkClasses) const
returns a list of all sink classes
This class handles and abstracts the database.
am_Error_e enterDomainDB(const am_Domain_s &domainData, am_domainID_t &domainID)
enters a domain in the database, creates and ID
am_Error_e enterSystemPropertiesListDB(const std::vector< am_SystemProperty_s > &listSystemProperties)
This function is used to enter the system Properties into the database.
CAmControlReceiver(IAmDatabaseHandler *iDatabaseHandler, CAmRoutingSender *iRoutingSender, CAmCommandSender *iCommandSender, CAmSocketHandler *iSocketHandler, CAmRouter *iRouter)
am_Error_e changeConverterDB(const am_converterID_t converterID, const std::vector< am_CustomConnectionFormat_t > &listSourceConnectionFormats, const std::vector< am_CustomConnectionFormat_t > &listSinkConnectionFormats, const std::vector< bool > &convertionMatrix)
changes converter Data
am_ConnectionState_e
represents the connection state
am_Error_e setSourceNotificationConfiguration(am_Handle_s &handle, const am_sourceID_t sourceID, const am_NotificationConfiguration_s &notificationConfiguration)
set a source notification configuration
am_Error_e enterSourceDB(const am_Source_s &sourceData, am_sourceID_t &sourceID)
enters a source in the database.
This struct describes the attributes of a converter.
am_Error_e getListMainSinkSoundProperties(const am_sinkID_t sinkID, std::vector< am_MainSoundProperty_s > &listSoundproperties) const
This function retrieves a list of all sink mainsoundproperties with its values.
am_HotSink_e
describes the active sink of a crossfader.
int16_t am_volume_t
The unit is 0.1 db steps,The smallest value -3000 (=AM_MUTE).
This struct describes the attribiutes of a crossfader.
am_Error_e getListSinkSoundProperties(const am_sinkID_t sinkID, std::vector< am_SoundProperty_s > &listSoundproperties) const
This function retrieves a list of all sink soundproperties with its values.
am_Error_e enterGatewayDB(const am_Gateway_s &gatewayData, am_gatewayID_t &gatewayID)
enters a gateway in the database.
am_Error_e getListSourceClasses(std::vector< am_SourceClass_s > &listSourceClasses) const
returns a list of all source classes
am_Error_e getConverterInfoDB(const am_converterID_t converterID, am_Converter_s &converterData) const
return source and sink of a converter
am_Error_e setSinkVolume(am_Handle_s &handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_CustomRampType_t ramp, const am_time_t time)
with this function, setting of sinks volumes is done.
uint16_t am_sourceClass_t
am_Error_e getListGatewaysOfDomain(const am_domainID_t domainID, std::vector< am_gatewayID_t > &listGatewaysID) const
returns all gateways of a domain
am_Error_e getListSystemProperties(std::vector< am_SystemProperty_s > &listSystemProperties) const
returns the list of SystemProperties
this describes the availability of a sink or a source together with the latest change ...
am_Error_e getListSourceSoundProperties(const am_sourceID_t sourceID, std::vector< am_SoundProperty_s > &listSoundproperties) const
This function retrieves a list of all sink soundproperties with its values.
am_Error_e getSourceSoundPropertyValue(const am_sourceID_t sourceID, const am_CustomSoundPropertyType_t propertyType, int16_t &value) const
This function retrieves the value of a source soundproperty.
This struct describes the attributes of a gateway.
This interface gives access to all important functions of the audiomanager that are used by the Audio...
Definition: IAmControl.h:56
am_Error_e getListSinksOfDomain(const am_domainID_t domainID, std::vector< am_sinkID_t > &listSinkID) const
returns all sinks of a domain
am_Error_e changeMainSourceNotificationConfigurationDB(const am_sourceID_t sourceID, const am_NotificationConfiguration_s &mainNotificationConfiguration)
change the mainNotificationConfiguration of a source
uint16_t am_time_t
time in ms!
am_Error_e removeSourceDB(const am_sourceID_t sourceID)
removes a source from the DB
am_Error_e removeSourceClassDB(const am_sourceClass_t sourceClassID)
removes a domain from the DB
am_Error_e removeMainConnectionDB(const am_mainConnectionID_t mainConnectionID)
removes a mainconnection from the DB
am_Error_e removeGatewayDB(const am_gatewayID_t gatewayID)
removes a gateway from the DB
void setCommandReady()
sets the command interface to ready.
am_Error_e getListConvertersOfDomain(const am_domainID_t domainID, std::vector< am_converterID_t > &listConverterID) const
returns all converters of a domain
am_Error_e changeSourceDB(const am_sourceID_t sourceID, const am_sourceClass_t sourceClassID, const std::vector< am_SoundProperty_s > &listSoundProperties, const std::vector< am_CustomConnectionFormat_t > &listConnectionFormats, const std::vector< am_MainSoundProperty_s > &listMainSoundProperties)
Change the data of the source.
uint16_t am_domainID_t
a domain ID
int16_t am_mainVolume_t
This is the volume presented on the command interface.
am_Error_e crossfade(am_Handle_s &handle, const am_HotSink_e hotSource, const am_crossfaderID_t crossfaderID, const am_CustomRampType_t rampType, const am_time_t rampTime)
triggers a cross fade.
am_Error_e changeSinkAvailabilityDB(const am_Availability_s &availability, const am_sinkID_t sinkID)
changes the availablility of a sink
am_Error_e getListHandles(std::vector< am_Handle_s > &listHandles) const
returns a list of all handles
am_Error_e getListSources(std::vector< am_Source_s > &listSources) const
returns a list of all sources
uint16_t am_gatewayID_t
a gateway ID
This struct describes the attribiutes of a source.
uint16_t am_CustomRampType_t
The given ramp types here are just examples.
am_Error_e getMainConnectionInfoDB(const am_mainConnectionID_t mainConnectionID, am_MainConnection_s &mainConnectionData) const
returns sources and the sink of a crossfader
am_Error_e getSinkInfoDB(const am_sinkID_t sinkID, am_Sink_s &sinkData) const
returns the sinkData of a sink
This class is used to send data to the CommandInterface.
am_Error_e getListMainSourceSoundProperties(const am_sourceID_t sourceID, std::vector< am_MainSoundProperty_s > &listSoundproperties) const
This function retrieves a list of all source mainsoundproperties with its values. ...
uint16_t am_sinkID_t
a sink ID
uint16_t am_mainConnectionID_t
a mainConnection ID
am_Error_e changeSinkClassInfoDB(const am_SinkClass_s &sinkClass)
changes class information of a sinkclass.
void confirmControllerReady(const am_Error_e error)
acknowledges the setControllerReady call.
am_Error_e setSinkSoundProperty(am_Handle_s &handle, const am_sinkID_t sinkID, const am_SoundProperty_s &soundProperty)
is used to set sinkSoundProperties
am_Error_e changeMainSinkSoundPropertyDB(const am_MainSoundProperty_s &soundProperty, const am_sinkID_t sinkID)
changes the mainsinksoundproperty of a sink
am_SourceState_e
The source state reflects the state of the source.
am_Error_e removeConverterDB(const am_converterID_t converterID)
removes a converter from the DB
am_Error_e setSourceState(am_Handle_s &handle, const am_sourceID_t sourceID, const am_SourceState_e state)
this method sets a source state for a source.
void confirmControllerRundown(const am_Error_e error)
Acknowledges the setControllerRundown call.
am_Error_e removeDomainDB(const am_domainID_t domainID)
removes a domain from the DB
void setRoutingReady()
sets the routinginterface to ready.
am_Error_e changeMainConnectionRouteDB(const am_mainConnectionID_t mainconnectionID, const std::vector< am_connectionID_t > &listConnectionID)
changes the mainConnectionState of MainConnection
am_Error_e changeSinkMainVolumeDB(const am_mainVolume_t mainVolume, const am_sinkID_t sinkID)
changes the sink volume of a sink
am_Error_e changeMainConnectionStateDB(const am_mainConnectionID_t mainconnectionID, const am_ConnectionState_e connectionState)
changes the mainConnectionState of MainConnection