AudioManager  7.6.6
Native Application Runtime Environment
am::CAmControlReceiver Class Reference

This class is used to receive all commands from the control interface. More...

#include <CAmControlReceiver.h>

Inheritance diagram for am::CAmControlReceiver:
am::IAmControlReceive

Public Member Functions

 CAmControlReceiver (IAmDatabaseHandler *iDatabaseHandler, CAmRoutingSender *iRoutingSender, CAmCommandSender *iCommandSender, CAmSocketHandler *iSocketHandler, CAmRouter *iRouter)
 
 ~CAmControlReceiver ()
 
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. More...
 
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. More...
 
am_Error_e disconnect (am_Handle_s &handle, const am_connectionID_t connectionID)
 is used to disconnect a connection More...
 
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. More...
 
am_Error_e abortAction (const am_Handle_s handle)
 with this method, all actions that have a handle assigned can be stopped. More...
 
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. More...
 
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. More...
 
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. More...
 
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 More...
 
am_Error_e setSinkSoundProperty (am_Handle_s &handle, const am_sinkID_t sinkID, const am_SoundProperty_s &soundProperty)
 is used to set sinkSoundProperties More...
 
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 More...
 
am_Error_e setSourceSoundProperty (am_Handle_s &handle, const am_sourceID_t sourceID, const am_SoundProperty_s &soundProperty)
 is used to set sourceSoundProperties More...
 
am_Error_e setDomainState (const am_domainID_t domainID, const am_DomainState_e domainState)
 sets the domain state of a domain More...
 
am_Error_e enterDomainDB (const am_Domain_s &domainData, am_domainID_t &domainID)
 enters a domain in the database, creates and ID More...
 
am_Error_e enterMainConnectionDB (const am_MainConnection_s &mainConnectionData, am_mainConnectionID_t &connectionID)
 enters a mainconnection in the database, creates and ID More...
 
am_Error_e enterSinkDB (const am_Sink_s &sinkData, am_sinkID_t &sinkID)
 enters a sink in the database. More...
 
am_Error_e enterCrossfaderDB (const am_Crossfader_s &crossfaderData, am_crossfaderID_t &crossfaderID)
 enters a crossfader in the database. More...
 
am_Error_e enterGatewayDB (const am_Gateway_s &gatewayData, am_gatewayID_t &gatewayID)
 enters a gateway in the database. More...
 
am_Error_e enterConverterDB (const am_Converter_s &converterData, am_converterID_t &converterID)
 enters a converter in the database. More...
 
am_Error_e enterSourceDB (const am_Source_s &sourceData, am_sourceID_t &sourceID)
 enters a source in the database. More...
 
am_Error_e enterSinkClassDB (const am_SinkClass_s &sinkClass, am_sinkClass_t &sinkClassID)
 Enters a sourceClass into the database. More...
 
am_Error_e enterSourceClassDB (am_sourceClass_t &sourceClassID, const am_SourceClass_s &sourceClass)
 Enters a sourceClass into the database. More...
 
am_Error_e changeSinkClassInfoDB (const am_SinkClass_s &sinkClass)
 changes class information of a sinkclass. More...
 
am_Error_e changeSourceClassInfoDB (const am_SourceClass_s &sourceClass)
 changes class information of a sourceClass. More...
 
am_Error_e enterSystemPropertiesListDB (const std::vector< am_SystemProperty_s > &listSystemProperties)
 This function is used to enter the system Properties into the database. More...
 
am_Error_e changeMainConnectionRouteDB (const am_mainConnectionID_t mainconnectionID, const std::vector< am_connectionID_t > &listConnectionID)
 changes the mainConnectionState of MainConnection More...
 
am_Error_e changeMainConnectionStateDB (const am_mainConnectionID_t mainconnectionID, const am_ConnectionState_e connectionState)
 changes the mainConnectionState of MainConnection More...
 
am_Error_e changeSinkMainVolumeDB (const am_mainVolume_t mainVolume, const am_sinkID_t sinkID)
 changes the sink volume of a sink More...
 
am_Error_e changeSinkAvailabilityDB (const am_Availability_s &availability, const am_sinkID_t sinkID)
 changes the availablility of a sink More...
 
am_Error_e changDomainStateDB (const am_DomainState_e domainState, const am_domainID_t domainID)
 changes the domainstate of a domain More...
 
am_Error_e changeSinkMuteStateDB (const am_MuteState_e muteState, const am_sinkID_t sinkID)
 changes the mute state of a sink More...
 
am_Error_e changeMainSinkSoundPropertyDB (const am_MainSoundProperty_s &soundProperty, const am_sinkID_t sinkID)
 changes the mainsinksoundproperty of a sink More...
 
am_Error_e changeMainSourceSoundPropertyDB (const am_MainSoundProperty_s &soundProperty, const am_sourceID_t sourceID)
 changes the mainsourcesoundproperty of a sink More...
 
am_Error_e changeSourceAvailabilityDB (const am_Availability_s &availability, const am_sourceID_t sourceID)
 changes the availablility of a source More...
 
am_Error_e changeSystemPropertyDB (const am_SystemProperty_s &property)
 changes a systemProperty More...
 
am_Error_e removeMainConnectionDB (const am_mainConnectionID_t mainConnectionID)
 removes a mainconnection from the DB More...
 
am_Error_e removeSinkDB (const am_sinkID_t sinkID)
 removes a sink from the DB More...
 
am_Error_e removeSourceDB (const am_sourceID_t sourceID)
 removes a source from the DB More...
 
am_Error_e removeGatewayDB (const am_gatewayID_t gatewayID)
 removes a gateway from the DB More...
 
am_Error_e removeConverterDB (const am_converterID_t converterID)
 removes a converter from the DB More...
 
am_Error_e removeCrossfaderDB (const am_crossfaderID_t crossfaderID)
 removes a crossfader from the DB More...
 
am_Error_e removeDomainDB (const am_domainID_t domainID)
 removes a domain from the DB More...
 
am_Error_e removeSinkClassDB (const am_sinkClass_t sinkClassID)
 removes a domain from the DB More...
 
am_Error_e removeSourceClassDB (const am_sourceClass_t sourceClassID)
 removes a domain from the DB More...
 
am_Error_e getSourceClassInfoDB (const am_sourceID_t sourceID, am_SourceClass_s &classInfo) const
 returns the ClassInformation of a source More...
 
am_Error_e getSinkClassInfoDB (const am_sinkID_t sinkID, am_SinkClass_s &sinkClass) const
 returns the ClassInformation of a sink More...
 
am_Error_e getSinkInfoDB (const am_sinkID_t sinkID, am_Sink_s &sinkData) const
 returns the sinkData of a sink More...
 
am_Error_e getSourceInfoDB (const am_sourceID_t sourceID, am_Source_s &sourceData) const
 returns the sourcekData of a source More...
 
am_Error_e getGatewayInfoDB (const am_gatewayID_t gatewayID, am_Gateway_s &gatewayData) const
 return source and sink of a gateway More...
 
am_Error_e getConverterInfoDB (const am_converterID_t converterID, am_Converter_s &converterData) const
 return source and sink of a converter More...
 
am_Error_e getCrossfaderInfoDB (const am_crossfaderID_t crossfaderID, am_Crossfader_s &crossfaderData) const
 returns sources and the sink of a crossfader More...
 
am_Error_e getMainConnectionInfoDB (const am_mainConnectionID_t mainConnectionID, am_MainConnection_s &mainConnectionData) const
 returns sources and the sink of a crossfader More...
 
am_Error_e getListSinksOfDomain (const am_domainID_t domainID, std::vector< am_sinkID_t > &listSinkID) const
 returns all sinks of a domain More...
 
am_Error_e getListSourcesOfDomain (const am_domainID_t domainID, std::vector< am_sourceID_t > &listSourceID) const
 returns all source of a domain More...
 
am_Error_e getListCrossfadersOfDomain (const am_domainID_t domainID, std::vector< am_crossfaderID_t > &listCrossfadersID) const
 returns all crossfaders of a domain More...
 
am_Error_e getListGatewaysOfDomain (const am_domainID_t domainID, std::vector< am_gatewayID_t > &listGatewaysID) const
 returns all gateways of a domain More...
 
am_Error_e getListConvertersOfDomain (const am_domainID_t domainID, std::vector< am_converterID_t > &listConverterID) const
 returns all converters of a domain More...
 
am_Error_e getListMainConnections (std::vector< am_MainConnection_s > &listMainConnections) const
 returns a complete list of all MainConnections More...
 
am_Error_e getListDomains (std::vector< am_Domain_s > &listDomains) const
 returns a complete list of all domains More...
 
am_Error_e getListConnections (std::vector< am_Connection_s > &listConnections) const
 returns a complete list of all Connections More...
 
am_Error_e getListSinks (std::vector< am_Sink_s > &listSinks) const
 returns a list of all sinks More...
 
am_Error_e getListSources (std::vector< am_Source_s > &listSources) const
 returns a list of all sources More...
 
am_Error_e getListSourceClasses (std::vector< am_SourceClass_s > &listSourceClasses) const
 returns a list of all source classes More...
 
am_Error_e getListHandles (std::vector< am_Handle_s > &listHandles) const
 returns a list of all handles More...
 
am_Error_e getListCrossfaders (std::vector< am_Crossfader_s > &listCrossfaders) const
 returns a list of all crossfaders More...
 
am_Error_e getListGateways (std::vector< am_Gateway_s > &listGateways) const
 returns a list of gateways More...
 
am_Error_e getListConverters (std::vector< am_Converter_s > &listConverters) const
 returns a list of converters More...
 
am_Error_e getListSinkClasses (std::vector< am_SinkClass_s > &listSinkClasses) const
 returns a list of all sink classes More...
 
am_Error_e getListSystemProperties (std::vector< am_SystemProperty_s > &listSystemProperties) const
 returns the list of SystemProperties More...
 
void setCommandReady ()
 sets the command interface to ready. More...
 
void setCommandRundown ()
 sets the command interface into the rundown state. More...
 
void setRoutingReady ()
 sets the routinginterface to ready. More...
 
void setRoutingRundown ()
 sets the routinginterface to the rundown state. More...
 
void confirmControllerReady (const am_Error_e error)
 acknowledges the setControllerReady call. More...
 
void confirmControllerRundown (const am_Error_e error)
 Acknowledges the setControllerRundown call. More...
 
am_Error_e getSocketHandler (CAmSocketHandler *&socketHandler)
 This function returns the pointer to the socketHandler. More...
 
void getInterfaceVersion (std::string &version) const
 This function returns the version of the interface. More...
 
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. More...
 
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. More...
 
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 More...
 
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 More...
 
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. More...
 
am_Error_e setSinkNotificationConfiguration (am_Handle_s &handle, const am_sinkID_t sinkID, const am_NotificationConfiguration_s &notificationConfiguration)
 set a sink notification configuration More...
 
am_Error_e setSourceNotificationConfiguration (am_Handle_s &handle, const am_sourceID_t sourceID, const am_NotificationConfiguration_s &notificationConfiguration)
 set a source notification configuration More...
 
void sendMainSinkNotificationPayload (const am_sinkID_t sinkID, const am_NotificationPayload_s &notificationPayload)
 Sends out the main notificiation of a sink. More...
 
void sendMainSourceNotificationPayload (const am_sourceID_t sourceID, const am_NotificationPayload_s &notificationPayload)
 Sends out the main notificiation of a source. More...
 
am_Error_e changeMainSinkNotificationConfigurationDB (const am_sinkID_t sinkID, const am_NotificationConfiguration_s &mainNotificationConfiguration)
 change the mainNotificationConfiguration of a sink More...
 
am_Error_e changeMainSourceNotificationConfigurationDB (const am_sourceID_t sourceID, const am_NotificationConfiguration_s &mainNotificationConfiguration)
 change the mainNotificationConfiguration of a source More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
am_Error_e removeHandle (const am_Handle_s handle)
 This function searches for a handle in the RoutingSender and removes it if found. More...
 
- Public Member Functions inherited from am::IAmControlReceive
 IAmControlReceive ()
 
virtual ~IAmControlReceive ()
 

Detailed Description

This class is used to receive all commands from the control interface.

Definition at line 42 of file CAmControlReceiver.h.

Constructor & Destructor Documentation

am::CAmControlReceiver::CAmControlReceiver ( IAmDatabaseHandler iDatabaseHandler,
CAmRoutingSender iRoutingSender,
CAmCommandSender iCommandSender,
CAmSocketHandler iSocketHandler,
CAmRouter iRouter 
)

Definition at line 40 of file CAmControlReceiver.cpp.

am::CAmControlReceiver::~CAmControlReceiver ( )

Definition at line 55 of file CAmControlReceiver.cpp.

Member Function Documentation

am_Error_e am::CAmControlReceiver::abortAction ( const am_Handle_s  handle)
virtual

with this method, all actions that have a handle assigned can be stopped.

Returns
E_OK on success, E_UNKNOWN on error

Implements am::IAmControlReceive.

Definition at line 119 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changDomainStateDB ( const am_DomainState_e  domainState,
const am_domainID_t  domainID 
)
virtual

changes the domainstate of a domain

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if domain was not found

Implements am::IAmControlReceive.

Definition at line 194 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

changes converter Data

Implements am::IAmControlReceive.

Definition at line 476 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

changes Gateway Data

Implements am::IAmControlReceive.

Definition at line 471 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeMainConnectionRouteDB ( const am_mainConnectionID_t  mainconnectionID,
const std::vector< am_connectionID_t > &  listConnectionID 
)
virtual

changes the mainConnectionState of MainConnection

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if mainconnection

Implements am::IAmControlReceive.

Definition at line 174 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeMainConnectionStateDB ( const am_mainConnectionID_t  mainconnectionID,
const am_ConnectionState_e  connectionState 
)
virtual

changes the mainConnectionState of MainConnection

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if mainconnection

Implements am::IAmControlReceive.

Definition at line 179 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeMainSinkNotificationConfigurationDB ( const am_sinkID_t  sinkID,
const am_NotificationConfiguration_s mainNotificationConfiguration 
)
virtual

change the mainNotificationConfiguration of a sink

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 508 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeMainSinkSoundPropertyDB ( const am_MainSoundProperty_s soundProperty,
const am_sinkID_t  sinkID 
)
virtual

changes the mainsinksoundproperty of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 204 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeMainSourceNotificationConfigurationDB ( const am_sourceID_t  sourceID,
const am_NotificationConfiguration_s mainNotificationConfiguration 
)
virtual

change the mainNotificationConfiguration of a source

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 514 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeMainSourceSoundPropertyDB ( const am_MainSoundProperty_s soundProperty,
const am_sourceID_t  sourceID 
)
virtual

changes the mainsourcesoundproperty of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if source was not found

Implements am::IAmControlReceive.

Definition at line 209 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSinkAvailabilityDB ( const am_Availability_s availability,
const am_sinkID_t  sinkID 
)
virtual

changes the availablility of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 189 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSinkClassInfoDB ( const am_SinkClass_s sinkClass)
virtual

changes class information of a sinkclass.

The properties will overwrite the values of the sinkClassID given in the sinkClass. It is the duty of the controller to check if the property is valid. If it does not exist, the daemon will not return an error.

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sinkClassID was not found.

Implements am::IAmControlReceive.

Definition at line 385 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

Change the data of the sink.

Implements am::IAmControlReceive.

Definition at line 466 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSinkMainVolumeDB ( const am_mainVolume_t  mainVolume,
const am_sinkID_t  sinkID 
)
virtual

changes the sink volume of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 184 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSinkMuteStateDB ( const am_MuteState_e  muteState,
const am_sinkID_t  sinkID 
)
virtual

changes the mute state of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 199 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSourceAvailabilityDB ( const am_Availability_s availability,
const am_sourceID_t  sourceID 
)
virtual

changes the availablility of a source

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if source was not found

Implements am::IAmControlReceive.

Definition at line 214 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSourceClassInfoDB ( const am_SourceClass_s sourceClass)
virtual

changes class information of a sourceClass.

The properties will overwrite the values of the sourceClassID given in the sourceClass. It is the duty of the controller to check if the property is valid. If it does not exist, the daemon will not return an error.

Returns
E_OK on success, E_DATABASE_ERROR on error and E_NON_EXISTENT if the ClassID does not exist.

Implements am::IAmControlReceive.

Definition at line 390 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

Change the data of the source.

Implements am::IAmControlReceive.

Definition at line 461 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::changeSystemPropertyDB ( const am_SystemProperty_s property)
virtual

changes a systemProperty

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if property was not found

Implements am::IAmControlReceive.

Definition at line 219 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::confirmControllerReady ( const am_Error_e  error)
virtual

acknowledges the setControllerReady call.

Implements am::IAmControlReceive.

Definition at line 417 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::confirmControllerRundown ( const am_Error_e  error)
virtual

Acknowledges the setControllerRundown call.

Implements am::IAmControlReceive.

Definition at line 423 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::connect ( am_Handle_s handle,
am_connectionID_t connectionID,
const am_CustomConnectionFormat_t  format,
const am_sourceID_t  sourceID,
const am_sinkID_t  sinkID 
)
virtual

With this function, elementary connects can be triggered by the controller.

Returns
E_OK on success, E_UNKNOWN on error, E_WRONG_FORMAT of connectionFormats do not match, E_NO_CHANGE if the desired connection is already build up

Implements am::IAmControlReceive.

Definition at line 64 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

triggers a cross fade.

Returns
E_OK on success, E_UNKNOWN on error E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 74 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::disconnect ( am_Handle_s handle,
const am_connectionID_t  connectionID 
)
virtual

is used to disconnect a connection

Returns
E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if connection was not found, E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 69 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterConverterDB ( const am_Converter_s converterData,
am_converterID_t converterID 
)
virtual

enters a converter in the database.

The converterID in am_Converter_s shall be 0 in case of a dynamic added source A converterID greater than 100 will be assigned. If a specific gatewayID with a value <100 is given, the given value will be used. This is for a static setup where the ID's are predefined.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 149 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterCrossfaderDB ( const am_Crossfader_s crossfaderData,
am_crossfaderID_t crossfaderID 
)
virtual

enters a crossfader in the database.

The crossfaderID in am_Crossfader_s shall be 0 in case of a dynamic added source A crossfaderID greater than 100 will be assigned. If a specific crossfaderID with a value <100 is given, the given value will be used. This is for a static setup where the ID's are predefined.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 139 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterDomainDB ( const am_Domain_s domainData,
am_domainID_t domainID 
)
virtual

enters a domain in the database, creates and ID

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 124 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterGatewayDB ( const am_Gateway_s gatewayData,
am_gatewayID_t gatewayID 
)
virtual

enters a gateway in the database.

The gatewayID in am_Gateway_s shall be 0 in case of a dynamic added source A gatewayID greater than 100 will be assigned. If a specific gatewayID with a value <100 is given, the given value will be used. This is for a static setup where the ID's are predefined.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 144 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterMainConnectionDB ( const am_MainConnection_s mainConnectionData,
am_mainConnectionID_t connectionID 
)
virtual

enters a mainconnection in the database, creates and ID

Returns
E_OK on success, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 129 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterSinkClassDB ( const am_SinkClass_s sinkClass,
am_sinkClass_t sinkClassID 
)
virtual

Enters a sourceClass into the database.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 159 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterSinkDB ( const am_Sink_s sinkData,
am_sinkID_t sinkID 
)
virtual

enters a sink in the database.

The sinkID in am_Sink_s shall be 0 in case of a dynamic added source A sinkID greater than 100 will be assigned. If a specific sinkID with a value <100 is given, the given value will be used. This is for a static setup where the ID's are predefined.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 134 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterSourceClassDB ( am_sourceClass_t sourceClassID,
const am_SourceClass_s sourceClass 
)
virtual

Enters a sourceClass into the database.

The sourceClassID in am_sourceClass_s shall be 0 in case of a dynamic added source A sourceClassID greater than 100 will be assigned. If a specific sourceClassID with a value <100 is given, the given value will be used. This is for a static setup where the ID's are predefined.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 164 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterSourceDB ( const am_Source_s sourceData,
am_sourceID_t sourceID 
)
virtual

enters a source in the database.

The sourceID in am_Source_s shall be 0 in case of a dynamic added source A sourceID greater than 100 will be assigned. If a specific sourceID with a value <100 is given, the given value will be used. This is for a static setup where the ID's are predefined.

Returns
E_OK on success, E_ALREADY_EXISTENT if the ID or name is already in the database, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 154 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::enterSystemPropertiesListDB ( const std::vector< am_SystemProperty_s > &  listSystemProperties)
virtual

This function is used to enter the system Properties into the database.

All entries in the database will be erased before entering the new List. It should only be called once at system startup.

Returns
E_OK on success, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 169 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getConverterInfoDB ( const am_converterID_t  converterID,
am_Converter_s converterData 
) const
virtual

return source and sink of a converter

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if gateway was not found

Implements am::IAmControlReceive.

Definition at line 289 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getCrossfaderInfoDB ( const am_crossfaderID_t  crossfaderID,
am_Crossfader_s crossfaderData 
) const
virtual

returns sources and the sink of a crossfader

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if crossfader was not found

Implements am::IAmControlReceive.

Definition at line 295 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getGatewayInfoDB ( const am_gatewayID_t  gatewayID,
am_Gateway_s gatewayData 
) const
virtual

return source and sink of a gateway

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if gateway was not found

Implements am::IAmControlReceive.

Definition at line 284 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::getInterfaceVersion ( std::string &  version) const
virtual

This function returns the version of the interface.

Implements am::IAmControlReceive.

Definition at line 456 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListConnections ( std::vector< am_Connection_s > &  listConnections) const
virtual

returns a complete list of all Connections

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 335 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListConverters ( std::vector< am_Converter_s > &  listConverters) const
virtual

returns a list of converters

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 370 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListConvertersOfDomain ( const am_domainID_t  domainID,
std::vector< am_converterID_t > &  listConverterID 
) const
virtual

returns all converters of a domain

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if domain was not found

Implements am::IAmControlReceive.

Definition at line 320 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListCrossfaders ( std::vector< am_Crossfader_s > &  listCrossfaders) const
virtual

returns a list of all crossfaders

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 360 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListCrossfadersOfDomain ( const am_domainID_t  domainID,
std::vector< am_crossfaderID_t > &  listCrossfadersID 
) const
virtual

returns all crossfaders of a domain

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if domain was not found

Implements am::IAmControlReceive.

Definition at line 310 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListDomains ( std::vector< am_Domain_s > &  listDomains) const
virtual

returns a complete list of all domains

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 330 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListGateways ( std::vector< am_Gateway_s > &  listGateways) const
virtual

returns a list of gateways

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 365 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListGatewaysOfDomain ( const am_domainID_t  domainID,
std::vector< am_gatewayID_t > &  listGatewaysID 
) const
virtual

returns all gateways of a domain

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if domain was not found

Implements am::IAmControlReceive.

Definition at line 315 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListHandles ( std::vector< am_Handle_s > &  listHandles) const
virtual

returns a list of all handles

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 355 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListMainConnections ( std::vector< am_MainConnection_s > &  listMainConnections) const
virtual

returns a complete list of all MainConnections

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 325 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListMainSinkSoundProperties ( const am_sinkID_t  sinkID,
std::vector< am_MainSoundProperty_s > &  listSoundproperties 
) const
virtual

This function retrieves a list of all sink mainsoundproperties with its values.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 520 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListMainSourceSoundProperties ( const am_sourceID_t  sourceID,
std::vector< am_MainSoundProperty_s > &  listSoundproperties 
) const
virtual

This function retrieves a list of all source mainsoundproperties with its values.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 526 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSinkClasses ( std::vector< am_SinkClass_s > &  listSinkClasses) const
virtual

returns a list of all sink classes

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 375 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSinks ( std::vector< am_Sink_s > &  listSinks) const
virtual

returns a list of all sinks

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 340 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSinksOfDomain ( const am_domainID_t  domainID,
std::vector< am_sinkID_t > &  listSinkID 
) const
virtual

returns all sinks of a domain

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if domain was not found

Implements am::IAmControlReceive.

Definition at line 300 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSinkSoundProperties ( const am_sinkID_t  sinkID,
std::vector< am_SoundProperty_s > &  listSoundproperties 
) const
virtual

This function retrieves a list of all sink soundproperties with its values.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 532 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSourceClasses ( std::vector< am_SourceClass_s > &  listSourceClasses) const
virtual

returns a list of all source classes

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 350 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSources ( std::vector< am_Source_s > &  listSources) const
virtual

returns a list of all sources

Returns
E_OK on success, E_DATABASE_ERROR on error

Implements am::IAmControlReceive.

Definition at line 345 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSourcesOfDomain ( const am_domainID_t  domainID,
std::vector< am_sourceID_t > &  listSourceID 
) const
virtual

returns all source of a domain

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if domain was not found

Implements am::IAmControlReceive.

Definition at line 305 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSourceSoundProperties ( const am_sourceID_t  sourceID,
std::vector< am_SoundProperty_s > &  listSoundproperties 
) const
virtual

This function retrieves a list of all sink soundproperties with its values.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 538 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getListSystemProperties ( std::vector< am_SystemProperty_s > &  listSystemProperties) const
virtual

returns the list of SystemProperties

Implements am::IAmControlReceive.

Definition at line 380 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getMainConnectionInfoDB ( const am_mainConnectionID_t  mainConnectionID,
am_MainConnection_s mainConnectionData 
) const
virtual

returns sources and the sink of a crossfader

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if crossfader was not found

Implements am::IAmControlReceive.

Definition at line 279 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getMainSinkSoundPropertyValue ( const am_sinkID_t  sinkID,
const am_CustomMainSoundPropertyType_t  propertyType,
int16_t &  value 
) const
virtual

This function retrieves the value of a sink Mainsoundproperty.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 544 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getMainSourceSoundPropertyValue ( const am_sourceID_t  sourceID,
const am_CustomMainSoundPropertyType_t  propertyType,
int16_t &  value 
) const
virtual

This function retrieves the value of a source Mainsoundproperty.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 556 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getRoute ( const bool  onlyfree,
const am_sourceID_t  sourceID,
const am_sinkID_t  sinkID,
std::vector< am_Route_s > &  returnList 
)
virtual

calculates a route from source to sink.

Returns
E_OK on success, E_UNKNOWN on error

Implements am::IAmControlReceive.

Definition at line 59 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSinkClassInfoDB ( const am_sinkID_t  sinkID,
am_SinkClass_s sinkClass 
) const
virtual

returns the ClassInformation of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 264 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSinkInfoDB ( const am_sinkID_t  sinkID,
am_Sink_s sinkData 
) const
virtual

returns the sinkData of a sink

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 269 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSinkSoundPropertyValue ( const am_sinkID_t  sinkID,
const am_CustomSoundPropertyType_t  propertyType,
int16_t &  value 
) const
virtual

This function retrieves the value of a sink soundproperty.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 550 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSocketHandler ( CAmSocketHandler *&  socketHandler)
virtual

This function returns the pointer to the socketHandler.

This can be used to integrate socket-based activites like communication with the mainloop of the AudioManager. returns E_OK if pointer is valid, E_UNKNOWN in case AudioManager was compiled without socketHandler support,

Implements am::IAmControlReceive.

Definition at line 438 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSourceClassInfoDB ( const am_sourceID_t  sourceID,
am_SourceClass_s classInfo 
) const
virtual

returns the ClassInformation of a source

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if source was not found

Implements am::IAmControlReceive.

Definition at line 259 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSourceInfoDB ( const am_sourceID_t  sourceID,
am_Source_s sourceData 
) const
virtual

returns the sourcekData of a source

Returns
E_OK on success, E_DATABASE_ERROR on error, E_NON_EXISTENT if sink was not found

Implements am::IAmControlReceive.

Definition at line 274 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::getSourceSoundPropertyValue ( const am_sourceID_t  sourceID,
const am_CustomSoundPropertyType_t  propertyType,
int16_t &  value 
) const
virtual

This function retrieves the value of a source soundproperty.

Returns
E_OK when successful, E_DATABASE on error

Implements am::IAmControlReceive.

Definition at line 562 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeConverterDB ( const am_converterID_t  converterID)
virtual

removes a converter from the DB

Returns
E_OK on success, E_NON_EXISTENT if gateway was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 244 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeCrossfaderDB ( const am_crossfaderID_t  crossfaderID)
virtual

removes a crossfader from the DB

Returns
E_OK on success, E_NON_EXISTENT if crossfader was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 249 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeDomainDB ( const am_domainID_t  domainID)
virtual

removes a domain from the DB

Returns
E_OK on success, E_NON_EXISTENT if domain was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 254 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeGatewayDB ( const am_gatewayID_t  gatewayID)
virtual

removes a gateway from the DB

Returns
E_OK on success, E_NON_EXISTENT if gateway was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 239 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeHandle ( const am_Handle_s  handle)
virtual

This function searches for a handle in the RoutingSender and removes it if found.

Returns
E_OK on success, handle removed, E_NON_EXISTENT in case the handle was not foud

Implements am::IAmControlReceive.

Definition at line 574 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeMainConnectionDB ( const am_mainConnectionID_t  mainConnectionID)
virtual

removes a mainconnection from the DB

Returns
E_OK on success, E_NON_EXISTENT if main connection was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 224 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeSinkClassDB ( const am_sinkClass_t  sinkClassID)
virtual

removes a domain from the DB

Returns
E_OK on success, E_NON_EXISTENT if domain was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 395 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeSinkDB ( const am_sinkID_t  sinkID)
virtual

removes a sink from the DB

Returns
E_OK on success, E_NON_EXISTENT if sink was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 229 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeSourceClassDB ( const am_sourceClass_t  sourceClassID)
virtual

removes a domain from the DB

Returns
E_OK on success, E_NON_EXISTENT if domain was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 400 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::removeSourceDB ( const am_sourceID_t  sourceID)
virtual

removes a source from the DB

Returns
E_OK on success, E_NON_EXISTENT if source was not found, E_DATABASE_ERROR if the database had an error

Implements am::IAmControlReceive.

Definition at line 234 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::resyncConnectionState ( const am_domainID_t  domainID,
std::vector< am_Connection_s > &  listOfExistingConnections 
)
virtual

Retrieves a list of all current active connections from a domain.

This method is meant to be used if the audiomanager and a remote domain are out of sync.

Implements am::IAmControlReceive.

Definition at line 568 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::sendMainSinkNotificationPayload ( const am_sinkID_t  sinkID,
const am_NotificationPayload_s notificationPayload 
)
virtual

Sends out the main notificiation of a sink.

Returns
E_OK on success, E_UNKNOWN on error

Implements am::IAmControlReceive.

Definition at line 496 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::sendMainSourceNotificationPayload ( const am_sourceID_t  sourceID,
const am_NotificationPayload_s notificationPayload 
)
virtual

Sends out the main notificiation of a source.

Returns
E_OK on success, E_UNKNOWN on error

Implements am::IAmControlReceive.

Definition at line 502 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::setCommandReady ( )
virtual

sets the command interface to ready.

Will send setCommandReady to each of the plugins. The corresponding answer is confirmCommandReady.

Implements am::IAmControlReceive.

Definition at line 405 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::setCommandRundown ( )
virtual

sets the command interface into the rundown state.

Will send setCommandRundown to each of the plugins. The corresponding answer is confirmCommandRundown.

Implements am::IAmControlReceive.

Definition at line 444 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setDomainState ( const am_domainID_t  domainID,
const am_DomainState_e  domainState 
)
virtual

sets the domain state of a domain

Returns
E_OK on success, E_UNKNOWN on error, E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 114 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::setRoutingReady ( )
virtual

sets the routinginterface to ready.

Will send the command setRoutingReady to each of the plugins. The related answer is confirmRoutingReady.

Implements am::IAmControlReceive.

Definition at line 411 of file CAmControlReceiver.cpp.

void am::CAmControlReceiver::setRoutingRundown ( )
virtual

sets the routinginterface to the rundown state.

Will send the command setRoutingRundown to each of the plugins. The related answer is confirmRoutingRundown.

Implements am::IAmControlReceive.

Definition at line 450 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSinkNotificationConfiguration ( am_Handle_s handle,
const am_sinkID_t  sinkID,
const am_NotificationConfiguration_s notificationConfiguration 
)
virtual

set a sink notification configuration

Implements am::IAmControlReceive.

Definition at line 486 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSinkSoundProperties ( am_Handle_s handle,
const am_sinkID_t  sinkID,
const std::vector< am_SoundProperty_s > &  soundProperty 
)
virtual

is used to set several sinkSoundProperties at a time

Returns
E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if property is out of range, E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 99 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSinkSoundProperty ( am_Handle_s handle,
const am_sinkID_t  sinkID,
const am_SoundProperty_s soundProperty 
)
virtual

is used to set sinkSoundProperties

Returns
E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if property is out of range, E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 94 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

with this function, setting of sinks volumes is done.

The behavior of the volume set is depended on the given ramp and time information. This function is not only used to ramp volume, but also to mute and direct set the level. Exact behavior is depended on the selected mute ramps.

Returns
E_OK on success, E_NO_CHANGE if the volume is already on the desired value, E_OUT_OF_RANGE is the volume is out of range, E_UNKNOWN on every other error.

Implements am::IAmControlReceive.

Definition at line 84 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSourceNotificationConfiguration ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_NotificationConfiguration_s notificationConfiguration 
)
virtual

set a source notification configuration

Implements am::IAmControlReceive.

Definition at line 491 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSourceSoundProperties ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const std::vector< am_SoundProperty_s > &  soundProperty 
)
virtual

is used to set several SourceSoundProperties at a time

Returns
E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if property is out of range. E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 109 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSourceSoundProperty ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_SoundProperty_s soundProperty 
)
virtual

is used to set sourceSoundProperties

Returns
E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if property is out of range. E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 104 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setSourceState ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_SourceState_e  state 
)
virtual

this method sets a source state for a source.

This function will trigger the callback cbAckSetSourceState

Returns
E_OK on success, E_NO_CHANGE if the desired value is already correct, E_UNKNOWN on error, E_NO_CHANGE if no change is neccessary

Implements am::IAmControlReceive.

Definition at line 79 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::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 
)
virtual

with this function, setting of source volumes is done.

The behavior of the volume set is depended on the given ramp and time information. This function is not only used to ramp volume, but also to mute and direct set the level. Exact behavior is depended on the selected mute ramps.

Returns
E_OK on success, E_NO_CHANGE if the volume is already on the desired value, E_OUT_OF_RANGE is the volume is out of range, E_UNKNOWN on every other error.

Implements am::IAmControlReceive.

Definition at line 89 of file CAmControlReceiver.cpp.

am_Error_e am::CAmControlReceiver::setVolumes ( am_Handle_s handle,
const std::vector< am_Volumes_s > &  listVolumes 
)
virtual

with this function, setting of multiple volumes at a time is done.

The behavior of the volume set is depended on the given ramp and time information. This function is not only used to ramp volume, but also to mute and direct set the level. Exact behavior is depended on the selected mute ramps.

Returns
E_OK on success, E_NO_CHANGE if the volume is already on the desired value, E_OUT_OF_RANGE is the volume is out of range, E_UNKNOWN on every other error.

Implements am::IAmControlReceive.

Definition at line 481 of file CAmControlReceiver.cpp.


The documentation for this class was generated from the following files: