AudioManager  7.6.6
Native Application Runtime Environment
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< CAmControlSenderdispatcherCallbackT
 

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 564 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 355 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 367 of file CAmControlSender.cpp.

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

Definition at line 361 of file CAmControlSender.cpp.

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

Definition at line 504 of file CAmControlSender.cpp.

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

Definition at line 414 of file CAmControlSender.cpp.

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

Definition at line 408 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 373 of file CAmControlSender.cpp.

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

Definition at line 510 of file CAmControlSender.cpp.

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

Definition at line 420 of file CAmControlSender.cpp.

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

Definition at line 391 of file CAmControlSender.cpp.

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

Definition at line 385 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 379 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 498 of file CAmControlSender.cpp.

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

Definition at line 548 of file CAmControlSender.cpp.

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

Definition at line 450 of file CAmControlSender.cpp.

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

Definition at line 462 of file CAmControlSender.cpp.

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

Definition at line 456 of file CAmControlSender.cpp.

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

Definition at line 468 of file CAmControlSender.cpp.

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

Definition at line 576 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 439 of file CAmControlSender.cpp.

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

Definition at line 445 of file CAmControlSender.cpp.

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

Definition at line 516 of file CAmControlSender.cpp.

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

Definition at line 522 of file CAmControlSender.cpp.

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

Definition at line 283 of file CAmControlSender.cpp.

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

Definition at line 295 of file CAmControlSender.cpp.

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

Definition at line 229 of file CAmControlSender.cpp.

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

Definition at line 277 of file CAmControlSender.cpp.

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

Definition at line 247 of file CAmControlSender.cpp.

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

Definition at line 259 of file CAmControlSender.cpp.

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

Definition at line 235 of file CAmControlSender.cpp.

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

Definition at line 331 of file CAmControlSender.cpp.

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

Definition at line 313 of file CAmControlSender.cpp.

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

Definition at line 337 of file CAmControlSender.cpp.

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

Definition at line 271 of file CAmControlSender.cpp.

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

Definition at line 289 of file CAmControlSender.cpp.

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

Definition at line 223 of file CAmControlSender.cpp.

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

Definition at line 265 of file CAmControlSender.cpp.

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

Definition at line 241 of file CAmControlSender.cpp.

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

Definition at line 253 of file CAmControlSender.cpp.

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

Definition at line 555 of file CAmControlSender.cpp.

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

Definition at line 319 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 301 of file CAmControlSender.cpp.

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

Definition at line 325 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 307 of file CAmControlSender.cpp.

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

Definition at line 343 of file CAmControlSender.cpp.

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

Definition at line 349 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 492 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 486 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 474 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 480 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 175 of file CAmControlSender.cpp.

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

Definition at line 181 of file CAmControlSender.cpp.

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

Definition at line 528 of file CAmControlSender.cpp.

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

Definition at line 187 of file CAmControlSender.cpp.

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

Definition at line 534 of file CAmControlSender.cpp.

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

Definition at line 193 of file CAmControlSender.cpp.

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

Definition at line 217 of file CAmControlSender.cpp.

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

Definition at line 199 of file CAmControlSender.cpp.

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

Definition at line 205 of file CAmControlSender.cpp.

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

Definition at line 211 of file CAmControlSender.cpp.

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

Definition at line 540 of file CAmControlSender.cpp.

void am::CAmControlSender::setControllerReady ( )

Definition at line 426 of file CAmControlSender.cpp.

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

Definition at line 432 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 397 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: