From 817b5ead32bb080bd5a6fff26b3957d400ba598c Mon Sep 17 00:00:00 2001 From: christian mueller Date: Tue, 21 Feb 2012 18:21:51 +0100 Subject: * [ GAM-18 ] Add cancel rundown messages to interfaces: added possbility for controller to call rundown on command and routing interfaces * beautified EA generated code in comments --- PluginControlInterface/src/ControlSender.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'PluginControlInterface/src') diff --git a/PluginControlInterface/src/ControlSender.cpp b/PluginControlInterface/src/ControlSender.cpp index 8969b1a..60ae417 100644 --- a/PluginControlInterface/src/ControlSender.cpp +++ b/PluginControlInterface/src/ControlSender.cpp @@ -57,6 +57,7 @@ am_Error_e ControlSenderPlugin::startupController(ControlReceiveInterface *contr assert(controlreceiveinterface); mControlReceiveInterface = controlreceiveinterface; //here is a good place to insert SystemProperties into the database... + //and might be a good place to insert the Source and Sink CLasses as well return E_NOT_USED; } @@ -134,7 +135,8 @@ am_Error_e ControlSenderPlugin::hookUserDisconnectionRequest(const am_mainConnec am_Error_e ControlSenderPlugin::hookUserSetMainSinkSoundProperty(const am_sinkID_t sinkID, const am_MainSoundProperty_s & soundProperty) { - if (sinkID==0) return E_NON_EXISTENT; + if (sinkID == 0) + return E_NON_EXISTENT; mainSinkSoundPropertySet set; set.sinkID = sinkID; @@ -438,10 +440,11 @@ void ControlSenderPlugin::cbAckSetSinkSoundProperties(const am_Handle_s handle, (void) handle; } -am_Error_e ControlSenderPlugin::getConnectionFormatChoice(const am_sourceID_t sourceID, const am_sinkID_t sinkID, const std::vector listPossibleConnectionFormats, std::vector& listPrioConnectionFormats) +am_Error_e ControlSenderPlugin::getConnectionFormatChoice(const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_Route_s listRoute, const std::vector listPossibleConnectionFormats, std::vector & listPrioConnectionFormats) { (void) sourceID; (void) sinkID; + (void) listRoute; //ok, this is cheap. In a real product you have your preferences, right? listPrioConnectionFormats = listPossibleConnectionFormats; return (E_OK); -- cgit v1.2.1