AudioManager  7.5.11
Native Application Runtime Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
am::CAmRoutingSender Class Reference

Implements the RoutingSendInterface. More...

#include <CAmRoutingSender.h>

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...
 

Detailed Description

Implements the RoutingSendInterface.

Loads all plugins and dispatches calls to the plugins

Definition at line 44 of file CAmRoutingSender.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file CAmRoutingSender.cpp.

am::CAmRoutingSender::~CAmRoutingSender ( )

Definition at line 175 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 671 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 614 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 653 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 635 of file CAmRoutingSender.cpp.

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

Definition at line 205 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 217 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 563 of file CAmRoutingSender.cpp.

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

Definition at line 269 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 889 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 526 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 416 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 306 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 926 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 489 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 453 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 380 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 343 of file CAmRoutingSender.cpp.

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

Definition at line 845 of file CAmRoutingSender.cpp.

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

Definition at line 1009 of file CAmRoutingSender.cpp.

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

Definition at line 983 of file CAmRoutingSender.cpp.

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

Definition at line 767 of file CAmRoutingSender.cpp.

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

Definition at line 973 of file CAmRoutingSender.cpp.

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

returns true if the handle exists

Definition at line 1024 of file CAmRoutingSender.cpp.

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

Definition at line 1123 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 739 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 688 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 757 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 722 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 705 of file CAmRoutingSender.cpp.

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

Definition at line 987 of file CAmRoutingSender.cpp.

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

Definition at line 599 of file CAmRoutingSender.cpp.

void am::CAmRoutingSender::setRoutingReady ( )

Definition at line 800 of file CAmRoutingSender.cpp.

void am::CAmRoutingSender::setRoutingRundown ( )

Definition at line 823 of file CAmRoutingSender.cpp.

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

Definition at line 187 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 996 of file CAmRoutingSender.cpp.


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