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

Implements the RoutingSendInterface. More...

#include <CAmRoutingSender.h>

Inheritance diagram for am::CAmRoutingSender:
am::CAmDatabaseHandlerMap::AmDatabaseObserverCallbacks

Classes

class  handleConnect
 
class  handleCrossFader
 
class  handleDataBase
 
class  handleDisconnect
 
class  handleSetSinkNotificationConfiguration
 
class  handleSetSourceNotificationConfiguration
 
class  handleSetVolumes
 
class  handleSinkSoundProperties
 
class  handleSinkSoundProperty
 
class  handleSinkVolume
 
class  handleSourceSoundProperties
 
class  handleSourceSoundProperty
 
class  handleSourceState
 
class  handleSourceVolume
 
class  handleVolumeBase
 
struct  InterfaceNamePairs
 < is used to pair interfaces with busnames More...
 

Public Member Functions

 CAmRoutingSender (const std::vector< std::string > &listOfPluginDirectories, IAmDatabaseHandler *databaseHandler)
 
 ~CAmRoutingSender ()
 
am_Error_e removeHandle (const am_Handle_s &handle)
 removes a handle from the list More...
 
am_Error_e addDomainLookup (const am_Domain_s &domainData)
 
am_Error_e addSourceLookup (const am_Source_s &sourceData)
 
am_Error_e addSinkLookup (const am_Sink_s &sinkData)
 
am_Error_e addCrossfaderLookup (const am_Crossfader_s &crossfaderData)
 
am_Error_e removeDomainLookup (const am_domainID_t domainID)
 
am_Error_e removeSourceLookup (const am_sourceID_t sourceID)
 
am_Error_e removeSinkLookup (const am_sinkID_t sinkID)
 
am_Error_e removeCrossfaderLookup (const am_crossfaderID_t crossfaderID)
 
am_Error_e removeConnectionLookup (const am_connectionID_t connectionID)
 
am_Error_e startupInterfaces (CAmRoutingReceiver *iRoutingReceiver)
 
void setRoutingReady ()
 
void setRoutingRundown ()
 
am_Error_e asyncAbort (const am_Handle_s &handle)
 
am_Error_e asyncConnect (am_Handle_s &handle, am_connectionID_t &connectionID, const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_CustomConnectionFormat_t connectionFormat)
 
am_Error_e asyncDisconnect (am_Handle_s &handle, const am_connectionID_t connectionID)
 
am_Error_e asyncSetSinkVolume (am_Handle_s &handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_CustomRampType_t ramp, const am_time_t time)
 
am_Error_e asyncSetSourceVolume (am_Handle_s &handle, const am_sourceID_t sourceID, const am_volume_t volume, const am_CustomRampType_t ramp, const am_time_t time)
 
am_Error_e asyncSetSourceState (am_Handle_s &handle, const am_sourceID_t sourceID, const am_SourceState_e state)
 
am_Error_e asyncSetSinkSoundProperty (am_Handle_s &handle, const am_sinkID_t sinkID, const am_SoundProperty_s &soundProperty)
 
am_Error_e asyncSetSourceSoundProperties (am_Handle_s &handle, const std::vector< am_SoundProperty_s > &listSoundProperties, const am_sourceID_t sourceID)
 
am_Error_e asyncSetSinkSoundProperties (am_Handle_s &handle, const std::vector< am_SoundProperty_s > &listSoundProperties, const am_sinkID_t sinkID)
 
am_Error_e asyncSetSourceSoundProperty (am_Handle_s &handle, const am_sourceID_t sourceID, const am_SoundProperty_s &soundProperty)
 
am_Error_e asyncCrossFade (am_Handle_s &handle, const am_crossfaderID_t crossfaderID, const am_HotSink_e hotSink, const am_CustomRampType_t rampType, const am_time_t time)
 
am_Error_e setDomainState (const am_domainID_t domainID, const am_DomainState_e domainState)
 
am_Error_e getListHandles (std::vector< am_Handle_s > &listHandles) const
 
am_Error_e getListPlugins (std::vector< std::string > &interfaces) const
 
void getInterfaceVersion (std::string &version) const
 
am_Error_e asyncSetVolumes (am_Handle_s &handle, const std::vector< am_Volumes_s > &listVolumes)
 
am_Error_e asyncSetSinkNotificationConfiguration (am_Handle_s &handle, const am_sinkID_t sinkID, const am_NotificationConfiguration_s &notificationConfiguration)
 
am_Error_e asyncSetSourceNotificationConfiguration (am_Handle_s &handle, const am_sourceID_t sourceID, const am_NotificationConfiguration_s &notificationConfiguration)
 
am_Error_e resyncConnectionState (const am_domainID_t domainID, std::vector< am_Connection_s > &listOfExistingConnections)
 
am_Error_e writeToDatabaseAndRemove (const am_Handle_s handle)
 write data to Database and remove handle More...
 
void checkVolume (const am_Handle_s handle, const am_volume_t volume)
 
bool handleExists (const am_Handle_s handle)
 returns true if the handle exists More...
 
- Public Member Functions inherited from am::CAmDatabaseHandlerMap::AmDatabaseObserverCallbacks
 AmDatabaseObserverCallbacks ()
 
virtual ~AmDatabaseObserverCallbacks ()
 

Additional Inherited Members

- Protected Attributes inherited from am::CAmDatabaseHandlerMap::AmDatabaseObserverCallbacks
std::function< void()> dboNumberOfSinkClassesChanged
 
std::function< void()> dboNumberOfSourceClassesChanged
 
std::function< void(const am_Sink_s &)> dboNewSink
 
std::function< void(const am_Source_s &)> dboNewSource
 
std::function< void(const am_Domain_s &)> dboNewDomain
 
std::function< void(const am_Gateway_s &)> dboNewGateway
 
std::function< void(const am_Converter_s &)> dboNewConverter
 
std::function< void(const am_Crossfader_s &)> dboNewCrossfader
 
std::function< void(const am_MainConnectionType_s &)> dboNewMainConnection
 
std::function< void(const am_mainConnectionID_t)> dboRemovedMainConnection
 
std::function< void(const am_sinkID_t, const bool)> dboRemovedSink
 
std::function< void(const am_sourceID_t, const bool)> dboRemovedSource
 
std::function< void(const am_domainID_t)> dboRemoveDomain
 
std::function< void(const am_gatewayID_t)> dboRemoveGateway
 
std::function< void(const am_converterID_t)> dboRemoveConverter
 
std::function< void(const am_crossfaderID_t)> dboRemoveCrossfader
 
std::function< void(const am_mainConnectionID_t, const am_ConnectionState_e)> dboMainConnectionStateChanged
 
std::function< void(const am_sinkID_t, const am_MainSoundProperty_s &)> dboMainSinkSoundPropertyChanged
 
std::function< void(const am_sourceID_t, const am_MainSoundProperty_s &)> dboMainSourceSoundPropertyChanged
 
std::function< void(const am_sinkID_t, const am_Availability_s &)> dboSinkAvailabilityChanged
 
std::function< void(const am_sourceID_t, const am_Availability_s &)> dboSourceAvailabilityChanged
 
std::function< void(const am_sinkID_t, const am_mainVolume_t)> dboVolumeChanged
 
std::function< void(const am_sinkID_t, const am_MuteState_e)> dboSinkMuteStateChanged
 
std::function< void(const am_SystemProperty_s &)> dboSystemPropertyChanged
 
std::function< void(const am_mainConnectionID_t, const am_timeSync_t)> dboTimingInformationChanged
 
std::function< void(const am_sinkID_t, const am_sinkClass_t, const std::vector< am_MainSoundProperty_s > &, const bool)> dboSinkUpdated
 
std::function< void(const am_sourceID_t, const am_sourceClass_t, const std::vector< am_MainSoundProperty_s > &, const bool)> dboSourceUpdated
 
std::function< void(const am_sinkID_t, const am_NotificationConfiguration_s)> dboSinkMainNotificationConfigurationChanged
 
std::function< void(const am_sourceID_t, const am_NotificationConfiguration_s)> dboSourceMainNotificationConfigurationChanged
 
CAmDatabaseHandlerMapmpDatabaseHandler
 

Detailed Description

Implements the RoutingSendInterface.

Loads all plugins and dispatches calls to the plugins

Definition at line 45 of file CAmRoutingSender.h.

Constructor & Destructor Documentation

am::CAmRoutingSender::CAmRoutingSender ( const std::vector< std::string > &  listOfPluginDirectories,
IAmDatabaseHandler databaseHandler 
)

Definition at line 48 of file CAmRoutingSender.cpp.

am::CAmRoutingSender::~CAmRoutingSender ( )

Definition at line 212 of file CAmRoutingSender.cpp.

Member Function Documentation

am_Error_e am::CAmRoutingSender::addCrossfaderLookup ( const am_Crossfader_s crossfaderData)
Author
Christian this adds the Crossfader to the lookup table of the Router. The data is used to have a quick lookup of the correct pluginInterface. This must be done whenever a Crossfader is registered.

Definition at line 708 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::addDomainLookup ( const am_Domain_s domainData)
Author
Christian this adds the domain to the lookup table of the Router. The data is used to have a quick lookup of the correct pluginInterface. This must be done whenever a domain is registered.

Definition at line 651 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::addSinkLookup ( const am_Sink_s sinkData)
Author
Christian this adds the Sink to the lookup table of the Router. The data is used to have a quick lookup of the correct pluginInterface. This must be done whenever a Sink is registered.

Definition at line 690 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::addSourceLookup ( const am_Source_s sourceData)
Author
Christian this adds the Source to the lookup table of the Router. The data is used to have a quick lookup of the correct pluginInterface. This must be done whenever a Source is registered.

Definition at line 672 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncAbort ( const am_Handle_s handle)

Definition at line 242 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncConnect ( am_Handle_s handle,
am_connectionID_t connectionID,
const am_sourceID_t  sourceID,
const am_sinkID_t  sinkID,
const am_CustomConnectionFormat_t  connectionFormat 
)

Definition at line 254 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncCrossFade ( am_Handle_s handle,
const am_crossfaderID_t  crossfaderID,
const am_HotSink_e  hotSink,
const am_CustomRampType_t  rampType,
const am_time_t  time 
)

Definition at line 600 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncDisconnect ( am_Handle_s handle,
const am_connectionID_t  connectionID 
)

Definition at line 306 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSinkNotificationConfiguration ( am_Handle_s handle,
const am_sinkID_t  sinkID,
const am_NotificationConfiguration_s notificationConfiguration 
)

Definition at line 941 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSinkSoundProperties ( am_Handle_s handle,
const std::vector< am_SoundProperty_s > &  listSoundProperties,
const am_sinkID_t  sinkID 
)

Definition at line 563 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSinkSoundProperty ( am_Handle_s handle,
const am_sinkID_t  sinkID,
const am_SoundProperty_s soundProperty 
)

Definition at line 453 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSinkVolume ( am_Handle_s handle,
const am_sinkID_t  sinkID,
const am_volume_t  volume,
const am_CustomRampType_t  ramp,
const am_time_t  time 
)

Definition at line 343 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSourceNotificationConfiguration ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_NotificationConfiguration_s notificationConfiguration 
)

Definition at line 978 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSourceSoundProperties ( am_Handle_s handle,
const std::vector< am_SoundProperty_s > &  listSoundProperties,
const am_sourceID_t  sourceID 
)

Definition at line 526 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSourceSoundProperty ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_SoundProperty_s soundProperty 
)

Definition at line 490 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSourceState ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_SourceState_e  state 
)

Definition at line 417 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetSourceVolume ( am_Handle_s handle,
const am_sourceID_t  sourceID,
const am_volume_t  volume,
const am_CustomRampType_t  ramp,
const am_time_t  time 
)

Definition at line 380 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::asyncSetVolumes ( am_Handle_s handle,
const std::vector< am_Volumes_s > &  listVolumes 
)

Definition at line 897 of file CAmRoutingSender.cpp.

void am::CAmRoutingSender::checkVolume ( const am_Handle_s  handle,
const am_volume_t  volume 
)

Definition at line 1061 of file CAmRoutingSender.cpp.

void am::CAmRoutingSender::getInterfaceVersion ( std::string &  version) const

Definition at line 1035 of file CAmRoutingSender.cpp.

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

Definition at line 804 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::getListPlugins ( std::vector< std::string > &  interfaces) const

Definition at line 1025 of file CAmRoutingSender.cpp.

bool am::CAmRoutingSender::handleExists ( const am_Handle_s  handle)

returns true if the handle exists

Definition at line 1076 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::removeConnectionLookup ( const am_connectionID_t  connectionID)

Definition at line 1175 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::removeCrossfaderLookup ( const am_crossfaderID_t  crossfaderID)
Author
Christian this removes the Crossfader to the lookup table of the Router. This must be done everytime a crossfader is deregistered.

Definition at line 776 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::removeDomainLookup ( const am_domainID_t  domainID)
Author
Christian this removes the Domain to the lookup table of the Router. This must be done everytime a domain is deregistered.

Definition at line 725 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::removeHandle ( const am_Handle_s handle)

removes a handle from the list

Parameters
handleto be removed
Returns
E_OK in case of success

Definition at line 794 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::removeSinkLookup ( const am_sinkID_t  sinkID)
Author
Christian this removes the Sink to the lookup table of the Router. This must be done everytime a sink is deregistered.

Definition at line 759 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::removeSourceLookup ( const am_sourceID_t  sourceID)
Author
Christian this removes the Source to the lookup table of the Router. This must be done everytime a source is deregistered.

Definition at line 742 of file CAmRoutingSender.cpp.

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

Definition at line 1039 of file CAmRoutingSender.cpp.

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

Definition at line 636 of file CAmRoutingSender.cpp.

void am::CAmRoutingSender::setRoutingReady ( )

Definition at line 852 of file CAmRoutingSender.cpp.

void am::CAmRoutingSender::setRoutingRundown ( )

Definition at line 875 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::startupInterfaces ( CAmRoutingReceiver iRoutingReceiver)

Definition at line 224 of file CAmRoutingSender.cpp.

am_Error_e am::CAmRoutingSender::writeToDatabaseAndRemove ( const am_Handle_s  handle)

write data to Database and remove handle

Definition at line 1048 of file CAmRoutingSender.cpp.


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