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

sends data to the commandInterface, takes the file of the library that needs to be loaded More...

#include <CAmControlSender.h>

Public Member Functions

 CAmControlSender (std::string controlPluginFile, CAmSocketHandler *sockethandler)
 
 CAmControlSender ()
 for testing only contructor - do not use ! More...
 
 ~CAmControlSender ()
 
am_Error_e startupController (IAmControlReceive *controlreceiveinterface)
 
void setControllerReady ()
 
void setControllerRundown (const int16_t signal)
 
am_Error_e hookUserConnectionRequest (const am_sourceID_t sourceID, const am_sinkID_t sinkID, am_mainConnectionID_t &mainConnectionID)
 
am_Error_e hookUserDisconnectionRequest (const am_mainConnectionID_t connectionID)
 
am_Error_e hookUserSetMainSinkSoundProperty (const am_sinkID_t sinkID, const am_MainSoundProperty_s &soundProperty)
 
am_Error_e hookUserSetMainSourceSoundProperty (const am_sourceID_t sourceID, const am_MainSoundProperty_s &soundProperty)
 
am_Error_e hookUserSetSystemProperty (const am_SystemProperty_s &property)
 
am_Error_e hookUserVolumeChange (const am_sinkID_t SinkID, const am_mainVolume_t newVolume)
 
am_Error_e hookUserVolumeStep (const am_sinkID_t SinkID, const int16_t increment)
 
am_Error_e hookUserSetSinkMuteState (const am_sinkID_t sinkID, const am_MuteState_e muteState)
 
am_Error_e hookSystemRegisterDomain (const am_Domain_s &domainData, am_domainID_t &domainID)
 
am_Error_e hookSystemDeregisterDomain (const am_domainID_t domainID)
 
void hookSystemDomainRegistrationComplete (const am_domainID_t domainID)
 
am_Error_e hookSystemRegisterSink (const am_Sink_s &sinkData, am_sinkID_t &sinkID)
 
am_Error_e hookSystemDeregisterSink (const am_sinkID_t sinkID)
 
am_Error_e hookSystemRegisterSource (const am_Source_s &sourceData, am_sourceID_t &sourceID)
 
am_Error_e hookSystemDeregisterSource (const am_sourceID_t sourceID)
 
am_Error_e hookSystemRegisterGateway (const am_Gateway_s &gatewayData, am_gatewayID_t &gatewayID)
 
am_Error_e hookSystemRegisterConverter (const am_Converter_s &converterData, am_converterID_t &converterID)
 
am_Error_e hookSystemDeregisterGateway (const am_gatewayID_t gatewayID)
 
am_Error_e hookSystemDeregisterConverter (const am_converterID_t converterID)
 
am_Error_e hookSystemRegisterCrossfader (const am_Crossfader_s &crossfaderData, am_crossfaderID_t &crossfaderID)
 
am_Error_e hookSystemDeregisterCrossfader (const am_crossfaderID_t crossfaderID)
 
void hookSystemSinkVolumeTick (const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume)
 
void hookSystemSourceVolumeTick (const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume)
 
void hookSystemInterruptStateChange (const am_sourceID_t sourceID, const am_InterruptState_e interruptState)
 
void hookSystemSinkAvailablityStateChange (const am_sinkID_t sinkID, const am_Availability_s &availability)
 
void hookSystemSourceAvailablityStateChange (const am_sourceID_t sourceID, const am_Availability_s &availability)
 
void hookSystemDomainStateChange (const am_domainID_t domainID, const am_DomainState_e state)
 
void hookSystemReceiveEarlyData (const std::vector< am_EarlyData_s > &data)
 
void hookSystemSpeedChange (const am_speed_t speed)
 
void hookSystemTimingInformationChanged (const am_mainConnectionID_t mainConnectionID, const am_timeSync_t time)
 
void cbAckConnect (const am_Handle_s handle, const am_Error_e errorID)
 
void cbAckDisconnect (const am_Handle_s handle, const am_Error_e errorID)
 
void cbAckCrossFade (const am_Handle_s handle, const am_HotSink_e hostsink, const am_Error_e error)
 
void cbAckSetSinkVolumeChange (const am_Handle_s handle, const am_volume_t volume, const am_Error_e error)
 
void cbAckSetSourceVolumeChange (const am_Handle_s handle, const am_volume_t voulme, const am_Error_e error)
 
void cbAckSetSourceState (const am_Handle_s handle, const am_Error_e error)
 
void cbAckSetSourceSoundProperties (const am_Handle_s handle, const am_Error_e error)
 
void cbAckSetSourceSoundProperty (const am_Handle_s handle, const am_Error_e error)
 
void cbAckSetSinkSoundProperties (const am_Handle_s handle, const am_Error_e error)
 
void cbAckSetSinkSoundProperty (const am_Handle_s handle, const am_Error_e error)
 
am_Error_e getConnectionFormatChoice (const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_Route_s listRoute, const std::vector< am_CustomConnectionFormat_t > listPossibleConnectionFormats, std::vector< am_CustomConnectionFormat_t > &listPrioConnectionFormats)
 
void confirmCommandReady (const am_Error_e error)
 
void confirmRoutingReady (const am_Error_e error)
 
void confirmCommandRundown (const am_Error_e error)
 
void confirmRoutingRundown (const am_Error_e error)
 
void getInterfaceVersion (std::string &version) const
 
am_Error_e hookSystemUpdateSink (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)
 
am_Error_e hookSystemUpdateSource (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)
 
am_Error_e hookSystemUpdateGateway (const am_gatewayID_t gatewayID, const std::vector< am_CustomConnectionFormat_t > &listSourceConnectionFormats, const std::vector< am_CustomConnectionFormat_t > &listSinkConnectionFromats, const std::vector< bool > &convertionMatrix)
 
am_Error_e hookSystemUpdateConverter (const am_converterID_t converterID, const std::vector< am_CustomConnectionFormat_t > &listSourceConnectionFormats, const std::vector< am_CustomConnectionFormat_t > &listSinkConnectionFromats, const std::vector< bool > &convertionMatrix)
 
void cbAckSetVolume (const am_Handle_s handle, const std::vector< am_Volumes_s > &listVolumes, const am_Error_e error)
 
void cbAckSetSinkNotificationConfiguration (const am_Handle_s handle, const am_Error_e error)
 
void cbAckSetSourceNotificationConfiguration (const am_Handle_s handle, const am_Error_e error)
 
void hookSinkNotificationDataChanged (const am_sinkID_t sinkID, const am_NotificationPayload_s &payload)
 
void hookSourceNotificationDataChanged (const am_sourceID_t sourceID, const am_NotificationPayload_s &payload)
 
am_Error_e hookUserSetMainSinkNotificationConfiguration (const am_sinkID_t sinkID, const am_NotificationConfiguration_s &notificationConfiguration)
 
am_Error_e hookUserSetMainSourceNotificationConfiguration (const am_sourceID_t sourceID, const am_NotificationConfiguration_s &notificationConfiguration)
 
void hookSystemSingleTimingInformationChanged (const am_connectionID_t connectionID, const am_timeSync_t time)
 
void receiverCallback (const pollfd pollfd, const sh_pollHandle_t handle, void *userData)
 
bool checkerCallback (const sh_pollHandle_t handle, void *userData)
 
bool dispatcherCallback (const sh_pollHandle_t handle, void *userData)
 
void setControllerRundownSafe (int16_t signal)
 

Static Public Member Functions

static void CallsetControllerRundown (int16_t signal)
 
static void CallsetControllerRundownSafe (int16_t signal)
 

Public Attributes

TAmShPollFired< CAmControlSenderreceiverCallbackT
 
TAmShPollCheck< CAmControlSendercheckerCallbackT
 
TAmShPollDispatch
< CAmControlSender
dispatcherCallbackT
 

Detailed Description

sends data to the commandInterface, takes the file of the library that needs to be loaded

Definition at line 41 of file CAmControlSender.h.

Constructor & Destructor Documentation

am::CAmControlSender::CAmControlSender ( std::string  controlPluginFile,
CAmSocketHandler sockethandler 
)

Definition at line 44 of file CAmControlSender.cpp.

am::CAmControlSender::CAmControlSender ( )

for testing only contructor - do not use !

Definition at line 551 of file CAmControlSender.cpp.

am::CAmControlSender::~CAmControlSender ( )

Definition at line 154 of file CAmControlSender.cpp.

Member Function Documentation

static void am::CAmControlSender::CallsetControllerRundown ( int16_t  signal)
inlinestatic

Definition at line 126 of file CAmControlSender.h.

static void am::CAmControlSender::CallsetControllerRundownSafe ( int16_t  signal)
inlinestatic

Definition at line 133 of file CAmControlSender.h.

void am::CAmControlSender::cbAckConnect ( const am_Handle_s  handle,
const am_Error_e  errorID 
)

Definition at line 342 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckCrossFade ( const am_Handle_s  handle,
const am_HotSink_e  hostsink,
const am_Error_e  error 
)

Definition at line 354 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckDisconnect ( const am_Handle_s  handle,
const am_Error_e  errorID 
)

Definition at line 348 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSinkNotificationConfiguration ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 491 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSinkSoundProperties ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 401 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSinkSoundProperty ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 395 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSinkVolumeChange ( const am_Handle_s  handle,
const am_volume_t  volume,
const am_Error_e  error 
)

Definition at line 360 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSourceNotificationConfiguration ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 497 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSourceSoundProperties ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 407 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSourceSoundProperty ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 378 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSourceState ( const am_Handle_s  handle,
const am_Error_e  error 
)

Definition at line 372 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetSourceVolumeChange ( const am_Handle_s  handle,
const am_volume_t  voulme,
const am_Error_e  error 
)

Definition at line 366 of file CAmControlSender.cpp.

void am::CAmControlSender::cbAckSetVolume ( const am_Handle_s  handle,
const std::vector< am_Volumes_s > &  listVolumes,
const am_Error_e  error 
)

Definition at line 485 of file CAmControlSender.cpp.

bool am::CAmControlSender::checkerCallback ( const sh_pollHandle_t  handle,
void *  userData 
)

Definition at line 535 of file CAmControlSender.cpp.

void am::CAmControlSender::confirmCommandReady ( const am_Error_e  error)

Definition at line 437 of file CAmControlSender.cpp.

void am::CAmControlSender::confirmCommandRundown ( const am_Error_e  error)

Definition at line 449 of file CAmControlSender.cpp.

void am::CAmControlSender::confirmRoutingReady ( const am_Error_e  error)

Definition at line 443 of file CAmControlSender.cpp.

void am::CAmControlSender::confirmRoutingRundown ( const am_Error_e  error)

Definition at line 455 of file CAmControlSender.cpp.

bool am::CAmControlSender::dispatcherCallback ( const sh_pollHandle_t  handle,
void *  userData 
)

Definition at line 563 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::getConnectionFormatChoice ( const am_sourceID_t  sourceID,
const am_sinkID_t  sinkID,
const am_Route_s  listRoute,
const std::vector< am_CustomConnectionFormat_t listPossibleConnectionFormats,
std::vector< am_CustomConnectionFormat_t > &  listPrioConnectionFormats 
)

Definition at line 426 of file CAmControlSender.cpp.

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

Definition at line 432 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSinkNotificationDataChanged ( const am_sinkID_t  sinkID,
const am_NotificationPayload_s payload 
)

Definition at line 503 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSourceNotificationDataChanged ( const am_sourceID_t  sourceID,
const am_NotificationPayload_s payload 
)

Definition at line 509 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemDeregisterConverter ( const am_converterID_t  converterID)

Definition at line 270 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemDeregisterCrossfader ( const am_crossfaderID_t  crossfaderID)

Definition at line 282 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemDeregisterDomain ( const am_domainID_t  domainID)

Definition at line 216 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemDeregisterGateway ( const am_gatewayID_t  gatewayID)

Definition at line 264 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemDeregisterSink ( const am_sinkID_t  sinkID)

Definition at line 234 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemDeregisterSource ( const am_sourceID_t  sourceID)

Definition at line 246 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemDomainRegistrationComplete ( const am_domainID_t  domainID)

Definition at line 222 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemDomainStateChange ( const am_domainID_t  domainID,
const am_DomainState_e  state 
)

Definition at line 318 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemInterruptStateChange ( const am_sourceID_t  sourceID,
const am_InterruptState_e  interruptState 
)

Definition at line 300 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemReceiveEarlyData ( const std::vector< am_EarlyData_s > &  data)

Definition at line 324 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemRegisterConverter ( const am_Converter_s converterData,
am_converterID_t converterID 
)

Definition at line 258 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemRegisterCrossfader ( const am_Crossfader_s crossfaderData,
am_crossfaderID_t crossfaderID 
)

Definition at line 276 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemRegisterDomain ( const am_Domain_s domainData,
am_domainID_t domainID 
)

Definition at line 210 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemRegisterGateway ( const am_Gateway_s gatewayData,
am_gatewayID_t gatewayID 
)

Definition at line 252 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemRegisterSink ( const am_Sink_s sinkData,
am_sinkID_t sinkID 
)

Definition at line 228 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemRegisterSource ( const am_Source_s sourceData,
am_sourceID_t sourceID 
)

Definition at line 240 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemSingleTimingInformationChanged ( const am_connectionID_t  connectionID,
const am_timeSync_t  time 
)

Definition at line 542 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemSinkAvailablityStateChange ( const am_sinkID_t  sinkID,
const am_Availability_s availability 
)

Definition at line 306 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemSinkVolumeTick ( const am_Handle_s  handle,
const am_sinkID_t  sinkID,
const am_volume_t  volume 
)

Definition at line 288 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemSourceAvailablityStateChange ( const am_sourceID_t  sourceID,
const am_Availability_s availability 
)

Definition at line 312 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemSourceVolumeTick ( const am_Handle_s  handle,
const am_sourceID_t  sourceID,
const am_volume_t  volume 
)

Definition at line 294 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemSpeedChange ( const am_speed_t  speed)

Definition at line 330 of file CAmControlSender.cpp.

void am::CAmControlSender::hookSystemTimingInformationChanged ( const am_mainConnectionID_t  mainConnectionID,
const am_timeSync_t  time 
)

Definition at line 336 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemUpdateConverter ( const am_converterID_t  converterID,
const std::vector< am_CustomConnectionFormat_t > &  listSourceConnectionFormats,
const std::vector< am_CustomConnectionFormat_t > &  listSinkConnectionFromats,
const std::vector< bool > &  convertionMatrix 
)

Definition at line 479 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemUpdateGateway ( const am_gatewayID_t  gatewayID,
const std::vector< am_CustomConnectionFormat_t > &  listSourceConnectionFormats,
const std::vector< am_CustomConnectionFormat_t > &  listSinkConnectionFromats,
const std::vector< bool > &  convertionMatrix 
)

Definition at line 473 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemUpdateSink ( 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 
)

Definition at line 461 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookSystemUpdateSource ( 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 
)

Definition at line 467 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserConnectionRequest ( const am_sourceID_t  sourceID,
const am_sinkID_t  sinkID,
am_mainConnectionID_t mainConnectionID 
)

Definition at line 162 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserDisconnectionRequest ( const am_mainConnectionID_t  connectionID)

Definition at line 168 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserSetMainSinkNotificationConfiguration ( const am_sinkID_t  sinkID,
const am_NotificationConfiguration_s notificationConfiguration 
)

Definition at line 515 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserSetMainSinkSoundProperty ( const am_sinkID_t  sinkID,
const am_MainSoundProperty_s soundProperty 
)

Definition at line 174 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserSetMainSourceNotificationConfiguration ( const am_sourceID_t  sourceID,
const am_NotificationConfiguration_s notificationConfiguration 
)

Definition at line 521 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserSetMainSourceSoundProperty ( const am_sourceID_t  sourceID,
const am_MainSoundProperty_s soundProperty 
)

Definition at line 180 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserSetSinkMuteState ( const am_sinkID_t  sinkID,
const am_MuteState_e  muteState 
)

Definition at line 204 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserSetSystemProperty ( const am_SystemProperty_s property)

Definition at line 186 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserVolumeChange ( const am_sinkID_t  SinkID,
const am_mainVolume_t  newVolume 
)

Definition at line 192 of file CAmControlSender.cpp.

am_Error_e am::CAmControlSender::hookUserVolumeStep ( const am_sinkID_t  SinkID,
const int16_t  increment 
)

Definition at line 198 of file CAmControlSender.cpp.

void am::CAmControlSender::receiverCallback ( const pollfd  pollfd,
const sh_pollHandle_t  handle,
void *  userData 
)

Definition at line 527 of file CAmControlSender.cpp.

void am::CAmControlSender::setControllerReady ( )

Definition at line 413 of file CAmControlSender.cpp.

void am::CAmControlSender::setControllerRundown ( const int16_t  signal)

Definition at line 419 of file CAmControlSender.cpp.

void am::CAmControlSender::setControllerRundownSafe ( int16_t  signal)
inline

Definition at line 113 of file CAmControlSender.h.

am_Error_e am::CAmControlSender::startupController ( IAmControlReceive controlreceiveinterface)

Definition at line 384 of file CAmControlSender.cpp.

Member Data Documentation

TAmShPollCheck<CAmControlSender> am::CAmControlSender::checkerCallbackT

Definition at line 121 of file CAmControlSender.h.

TAmShPollDispatch<CAmControlSender> am::CAmControlSender::dispatcherCallbackT

Definition at line 122 of file CAmControlSender.h.

TAmShPollFired<CAmControlSender> am::CAmControlSender::receiverCallbackT

Definition at line 120 of file CAmControlSender.h.


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