AudioManager
7.5.11
Native Application Runtime Environment
|
Implements the Receiving side of the RoutingPlugins. More...
#include <CAmRoutingReceiver.h>
Public Member Functions | |
CAmRoutingReceiver (IAmDatabaseHandler *iDatabaseHandler, CAmRoutingSender *iRoutingSender, CAmControlSender *iControlSender, CAmSocketHandler *iSocketHandler) | |
CAmRoutingReceiver (IAmDatabaseHandler *iDatabaseHandler, CAmRoutingSender *iRoutingSender, CAmControlSender *iControlSender, CAmSocketHandler *iSocketHandler, CAmDbusWrapper *iDBusWrapper) | |
~CAmRoutingReceiver () | |
void | ackConnect (const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) |
acknowledges a asyncConnect More... | |
void | ackDisconnect (const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) |
acknowledges a asyncDisconnect More... | |
void | ackSetSinkVolumeChange (const am_Handle_s handle, const am_volume_t volume, const am_Error_e error) |
acknowledges a asyncsetSinkVolume More... | |
void | ackSetSourceVolumeChange (const am_Handle_s handle, const am_volume_t volume, const am_Error_e error) |
acknowledges a asyncsetSourceVolume More... | |
void | ackSetSourceState (const am_Handle_s handle, const am_Error_e error) |
acknowlegde for asyncSetSourceState More... | |
void | ackSetSinkSoundProperties (const am_Handle_s handle, const am_Error_e error) |
acknowledges asyncSetSinkSoundProperties More... | |
void | ackSetSinkSoundProperty (const am_Handle_s handle, const am_Error_e error) |
acknowledges asyncSetSinkSoundProperty More... | |
void | ackSetSourceSoundProperties (const am_Handle_s handle, const am_Error_e error) |
acknowledges asyncSetSourceSoundProperties More... | |
void | ackSetSourceSoundProperty (const am_Handle_s handle, const am_Error_e error) |
acknowledges asyncSetSourceSoundProperty More... | |
void | ackCrossFading (const am_Handle_s handle, const am_HotSink_e hotSink, const am_Error_e error) |
acknowledges asyncCrossFade More... | |
void | ackSourceVolumeTick (const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume) |
acknowledges a volume tick. More... | |
void | ackSinkVolumeTick (const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume) |
acknowledges a volume tick. More... | |
am_Error_e | peekDomain (const std::string &name, am_domainID_t &domainID) |
This function returns the ID to the given domainName. More... | |
am_Error_e | registerDomain (const am_Domain_s &domainData, am_domainID_t &domainID) |
registers a domain More... | |
am_Error_e | deregisterDomain (const am_domainID_t domainID) |
deregisters a domain. More... | |
am_Error_e | registerGateway (const am_Gateway_s &gatewayData, am_gatewayID_t &gatewayID) |
registers a gateway. More... | |
am_Error_e | registerConverter (const am_Converter_s &converterData, am_converterID_t &converterID) |
registers a converter. More... | |
am_Error_e | deregisterGateway (const am_gatewayID_t gatewayID) |
deregisters a gateway. More... | |
am_Error_e | deregisterConverter (const am_converterID_t converterID) |
deregisters a converter. More... | |
am_Error_e | peekSink (const std::string &name, am_sinkID_t &sinkID) |
This function returns the ID to the given sinkName. More... | |
am_Error_e | registerSink (const am_Sink_s &sinkData, am_sinkID_t &sinkID) |
Registers a sink. More... | |
am_Error_e | deregisterSink (const am_sinkID_t sinkID) |
deregisters a sink. More... | |
am_Error_e | peekSource (const std::string &name, am_sourceID_t &sourceID) |
This function returns the ID to the given sourceName. More... | |
am_Error_e | registerSource (const am_Source_s &sourceData, am_sourceID_t &sourceID) |
registers a source. More... | |
am_Error_e | deregisterSource (const am_sourceID_t sourceID) |
deregisters a source More... | |
am_Error_e | registerCrossfader (const am_Crossfader_s &crossfaderData, am_crossfaderID_t &crossfaderID) |
this function registers a crossfader. More... | |
am_Error_e | deregisterCrossfader (const am_crossfaderID_t crossfaderID) |
this function deregisters a crossfader. More... | |
am_Error_e | peekSourceClassID (const std::string &name, am_sourceClass_t &sourceClassID) |
this function peeks a sourceclassID. More... | |
am_Error_e | peekSinkClassID (const std::string &name, am_sinkClass_t &sinkClassID) |
this function peeks a sourceclassID. More... | |
void | hookInterruptStatusChange (const am_sourceID_t sourceID, const am_InterruptState_e interruptState) |
is called when a low level interrupt changes it status. More... | |
void | hookDomainRegistrationComplete (const am_domainID_t domainID) |
This hook is called when all elements from a domain are registered. More... | |
void | hookSinkAvailablityStatusChange (const am_sinkID_t sinkID, const am_Availability_s &availability) |
is called when a sink changes its availability More... | |
void | hookSourceAvailablityStatusChange (const am_sourceID_t sourceID, const am_Availability_s &availability) |
is called when a source changes its availability More... | |
void | hookDomainStateChange (const am_domainID_t domainID, const am_DomainState_e domainState) |
is called when a domain changes its status. More... | |
void | hookTimingInformationChanged (const am_connectionID_t connectionID, const am_timeSync_t delay) |
is called when the timinginformation (delay) changed for a connection. More... | |
void | sendChangedData (const std::vector< am_EarlyData_s > &earlyData) |
this function is used to send out all data that has been changed in an early state. More... | |
am_Error_e | getDBusConnectionWrapper (CAmDbusWrapper *&dbusConnectionWrapper) const |
this function is used to retrieve a pointer to the dBusConnectionWrapper More... | |
am_Error_e | getSocketHandler (CAmSocketHandler *&socketHandler) const |
This function returns the pointer to the socketHandler. More... | |
void | getInterfaceVersion (std::string &version) const |
This function returns the version of the interface. More... | |
void | confirmRoutingReady (const uint16_t handle, const am_Error_e error) |
confirms the setRoutingReady Command More... | |
void | confirmRoutingRundown (const uint16_t handle, const am_Error_e error) |
confirms the setRoutingRundown Command More... | |
am_Error_e | updateGateway (const am_gatewayID_t gatewayID, const std::vector< am_CustomConnectionFormat_t > &listSourceFormats, const std::vector< am_CustomConnectionFormat_t > &listSinkFormats, const std::vector< bool > &convertionMatrix) |
updates data of an gateway. More... | |
am_Error_e | updateConverter (const am_converterID_t converterID, const std::vector< am_CustomConnectionFormat_t > &listSourceFormats, const std::vector< am_CustomConnectionFormat_t > &listSinkFormats, const std::vector< bool > &convertionMatrix) |
updates data of an converter. More... | |
am_Error_e | updateSink (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) |
updates data of an gateway. More... | |
am_Error_e | updateSource (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) |
updates data of an source. More... | |
void | ackSetVolumes (const am_Handle_s handle, const std::vector< am_Volumes_s > &listvolumes, const am_Error_e error) |
acknowledges a asyncSetSinkVolumes More... | |
void | ackSinkNotificationConfiguration (const am_Handle_s handle, const am_Error_e error) |
The acknowledge of the SinkNotificationConfiguration. More... | |
void | ackSourceNotificationConfiguration (const am_Handle_s handle, const am_Error_e error) |
The acknowledge of the SourceNotificationConfiguration. More... | |
void | hookSinkNotificationDataChange (const am_sinkID_t sinkID, const am_NotificationPayload_s &payload) |
is called whenever a notified value needs to be send More... | |
void | hookSourceNotificationDataChange (const am_sourceID_t sourceID, const am_NotificationPayload_s &payload) |
is called whenever a notified value needs to be send More... | |
am_Error_e | getDomainOfSink (const am_sinkID_t sinkID, am_domainID_t &domainID) const |
E_OK in case of success. More... | |
am_Error_e | getDomainOfSource (const am_sourceID_t sourceID, am_domainID_t &domainID) const |
E_OK in case of success. More... | |
am_Error_e | getDomainOfCrossfader (const am_crossfaderID_t crossfader, am_domainID_t &domainID) const |
E_OK in case of success. More... | |
uint16_t | getStartupHandle () |
returns a startup handle More... | |
uint16_t | getRundownHandle () |
returns a rundown handle More... | |
void | waitOnStartup (bool startup) |
tells the RoutingReceiver to start waiting for all handles to be confirmed More... | |
void | waitOnRundown (bool rundown) |
tells the RoutingReceiver to start waiting for all handles to be confirmed More... | |
Public Member Functions inherited from am::IAmRoutingReceive | |
IAmRoutingReceive () | |
virtual | ~IAmRoutingReceive () |
Implements the Receiving side of the RoutingPlugins.
Definition at line 41 of file CAmRoutingReceiver.h.
am::CAmRoutingReceiver::CAmRoutingReceiver | ( | IAmDatabaseHandler * | iDatabaseHandler, |
CAmRoutingSender * | iRoutingSender, | ||
CAmControlSender * | iControlSender, | ||
CAmSocketHandler * | iSocketHandler | ||
) |
Definition at line 36 of file CAmRoutingReceiver.cpp.
am::CAmRoutingReceiver::CAmRoutingReceiver | ( | IAmDatabaseHandler * | iDatabaseHandler, |
CAmRoutingSender * | iRoutingSender, | ||
CAmControlSender * | iControlSender, | ||
CAmSocketHandler * | iSocketHandler, | ||
CAmDbusWrapper * | iDBusWrapper | ||
) |
Definition at line 56 of file CAmRoutingReceiver.cpp.
am::CAmRoutingReceiver::~CAmRoutingReceiver | ( | ) |
Definition at line 77 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a asyncConnect
Implements am::IAmRoutingReceive.
Definition at line 93 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges asyncCrossFade
Implements am::IAmRoutingReceive.
Definition at line 196 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a asyncDisconnect
Implements am::IAmRoutingReceive.
Definition at line 112 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges asyncSetSinkSoundProperties
Implements am::IAmRoutingReceive.
Definition at line 175 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges asyncSetSinkSoundProperty
Implements am::IAmRoutingReceive.
Definition at line 168 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a asyncsetSinkVolume
Implements am::IAmRoutingReceive.
Definition at line 123 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges asyncSetSourceSoundProperties
Implements am::IAmRoutingReceive.
Definition at line 189 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges asyncSetSourceSoundProperty
Implements am::IAmRoutingReceive.
Definition at line 182 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowlegde for asyncSetSourceState
Implements am::IAmRoutingReceive.
Definition at line 161 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a asyncsetSourceVolume
Implements am::IAmRoutingReceive.
Definition at line 142 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a asyncSetSinkVolumes
Implements am::IAmRoutingReceive.
Definition at line 431 of file CAmRoutingReceiver.cpp.
|
virtual |
The acknowledge of the SinkNotificationConfiguration.
Implements am::IAmRoutingReceive.
Definition at line 397 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a volume tick.
This can be used to display volumechanges during ramps
Implements am::IAmRoutingReceive.
Definition at line 209 of file CAmRoutingReceiver.cpp.
|
virtual |
The acknowledge of the SourceNotificationConfiguration.
Implements am::IAmRoutingReceive.
Definition at line 404 of file CAmRoutingReceiver.cpp.
|
virtual |
acknowledges a volume tick.
This can be used to display volumechanges during ramps
Implements am::IAmRoutingReceive.
Definition at line 203 of file CAmRoutingReceiver.cpp.
|
virtual |
confirms the setRoutingReady Command
Implements am::IAmRoutingReceive.
Definition at line 359 of file CAmRoutingReceiver.cpp.
|
virtual |
confirms the setRoutingRundown Command
Implements am::IAmRoutingReceive.
Definition at line 368 of file CAmRoutingReceiver.cpp.
|
virtual |
deregisters a converter.
Also removes all sinks and sources of the controlling domain.
Implements am::IAmRoutingReceive.
Definition at line 245 of file CAmRoutingReceiver.cpp.
|
virtual |
this function deregisters a crossfader.
removes all sources and sinks assiated as well.
Implements am::IAmRoutingReceive.
Definition at line 285 of file CAmRoutingReceiver.cpp.
|
virtual |
deregisters a domain.
All sources, sinks, gateways and crossfaders from that domain will be removed as well.
Implements am::IAmRoutingReceive.
Definition at line 225 of file CAmRoutingReceiver.cpp.
|
virtual |
deregisters a gateway.
Also removes all sinks and sources of the controlling domain.
Implements am::IAmRoutingReceive.
Definition at line 240 of file CAmRoutingReceiver.cpp.
|
virtual |
deregisters a sink.
Implements am::IAmRoutingReceive.
Definition at line 260 of file CAmRoutingReceiver.cpp.
|
virtual |
deregisters a source
Implements am::IAmRoutingReceive.
Definition at line 275 of file CAmRoutingReceiver.cpp.
|
virtual |
this function is used to retrieve a pointer to the dBusConnectionWrapper
Implements am::IAmRoutingReceive.
Definition at line 342 of file CAmRoutingReceiver.cpp.
|
virtual |
E_OK in case of success.
Implements am::IAmRoutingReceive.
Definition at line 460 of file CAmRoutingReceiver.cpp.
|
virtual |
E_OK in case of success.
Implements am::IAmRoutingReceive.
Definition at line 450 of file CAmRoutingReceiver.cpp.
|
virtual |
E_OK in case of success.
Implements am::IAmRoutingReceive.
Definition at line 455 of file CAmRoutingReceiver.cpp.
|
virtual |
This function returns the version of the interface.
Implements am::IAmRoutingReceive.
Definition at line 354 of file CAmRoutingReceiver.cpp.
uint16_t am::CAmRoutingReceiver::getRundownHandle | ( | ) |
returns a rundown handle
Definition at line 384 of file CAmRoutingReceiver.cpp.
|
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::IAmRoutingReceive.
Definition at line 348 of file CAmRoutingReceiver.cpp.
uint16_t am::CAmRoutingReceiver::getStartupHandle | ( | ) |
returns a startup handle
Definition at line 377 of file CAmRoutingReceiver.cpp.
|
virtual |
This hook is called when all elements from a domain are registered.
Is used by the Controller to know when all expected domains are finally registered
Implements am::IAmRoutingReceive.
Definition at line 295 of file CAmRoutingReceiver.cpp.
|
virtual |
is called when a domain changes its status.
This used for early domains only
Implements am::IAmRoutingReceive.
Definition at line 310 of file CAmRoutingReceiver.cpp.
|
virtual |
is called when a low level interrupt changes it status.
Implements am::IAmRoutingReceive.
Definition at line 290 of file CAmRoutingReceiver.cpp.
|
virtual |
is called when a sink changes its availability
Implements am::IAmRoutingReceive.
Definition at line 300 of file CAmRoutingReceiver.cpp.
|
virtual |
is called whenever a notified value needs to be send
Implements am::IAmRoutingReceive.
Definition at line 438 of file CAmRoutingReceiver.cpp.
|
virtual |
is called when a source changes its availability
Implements am::IAmRoutingReceive.
Definition at line 305 of file CAmRoutingReceiver.cpp.
|
virtual |
is called whenever a notified value needs to be send
Implements am::IAmRoutingReceive.
Definition at line 444 of file CAmRoutingReceiver.cpp.
|
virtual |
is called when the timinginformation (delay) changed for a connection.
Implements am::IAmRoutingReceive.
Definition at line 315 of file CAmRoutingReceiver.cpp.
|
virtual |
This function returns the ID to the given domainName.
If already a domain is registered with this name, it will return the corresponding ID, if not it will reserve an ID but not register the domain. The other parameters of the domain will be overwritten when the domain is registered.
Implements am::IAmRoutingReceive.
Definition at line 215 of file CAmRoutingReceiver.cpp.
|
virtual |
This function returns the ID to the given sinkName.
If already a sink is registered with this name, it will return the corresponding ID, if not it will reserve an ID but not register the sink. The other parameters of the sink will be overwritten when the sink is registered.
Implements am::IAmRoutingReceive.
Definition at line 250 of file CAmRoutingReceiver.cpp.
|
virtual |
this function peeks a sourceclassID.
It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
Implements am::IAmRoutingReceive.
Definition at line 326 of file CAmRoutingReceiver.cpp.
|
virtual |
This function returns the ID to the given sourceName.
If already a source is registered with this name, it will return the corresponding ID, if not it will reserve an ID but not register the source. The other parameters of the source will be overwritten when the source is registered.
Implements am::IAmRoutingReceive.
Definition at line 265 of file CAmRoutingReceiver.cpp.
|
virtual |
this function peeks a sourceclassID.
It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
Implements am::IAmRoutingReceive.
Definition at line 331 of file CAmRoutingReceiver.cpp.
|
virtual |
registers a converter.
Implements am::IAmRoutingReceive.
Definition at line 235 of file CAmRoutingReceiver.cpp.
|
virtual |
this function registers a crossfader.
Implements am::IAmRoutingReceive.
Definition at line 280 of file CAmRoutingReceiver.cpp.
|
virtual |
registers a domain
Implements am::IAmRoutingReceive.
Definition at line 220 of file CAmRoutingReceiver.cpp.
|
virtual |
registers a gateway.
Implements am::IAmRoutingReceive.
Definition at line 230 of file CAmRoutingReceiver.cpp.
|
virtual |
Registers a sink.
If the sink is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
Implements am::IAmRoutingReceive.
Definition at line 255 of file CAmRoutingReceiver.cpp.
|
virtual |
registers a source.
If the source is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
Implements am::IAmRoutingReceive.
Definition at line 270 of file CAmRoutingReceiver.cpp.
|
virtual |
this function is used to send out all data that has been changed in an early state.
Implements am::IAmRoutingReceive.
Definition at line 321 of file CAmRoutingReceiver.cpp.
|
virtual |
updates data of an converter.
Implements am::IAmRoutingReceive.
Definition at line 416 of file CAmRoutingReceiver.cpp.
|
virtual |
updates data of an gateway.
Implements am::IAmRoutingReceive.
Definition at line 411 of file CAmRoutingReceiver.cpp.
|
virtual |
updates data of an gateway.
Implements am::IAmRoutingReceive.
Definition at line 421 of file CAmRoutingReceiver.cpp.
|
virtual |
updates data of an source.
Implements am::IAmRoutingReceive.
Definition at line 426 of file CAmRoutingReceiver.cpp.
void am::CAmRoutingReceiver::waitOnRundown | ( | bool | rundown | ) |
tells the RoutingReceiver to start waiting for all handles to be confirmed
Definition at line 465 of file CAmRoutingReceiver.cpp.
void am::CAmRoutingReceiver::waitOnStartup | ( | bool | startup | ) |
tells the RoutingReceiver to start waiting for all handles to be confirmed
Definition at line 391 of file CAmRoutingReceiver.cpp.