summaryrefslogtreecommitdiff
path: root/include/routing
diff options
context:
space:
mode:
authorchristian linke <christian.linke@bmw.de>2012-12-17 16:15:11 +0100
committerchristian linke <christian.linke@bmw.de>2012-12-17 16:15:11 +0100
commit54c5e965fe8f9a53a78834028fd65c792493da2b (patch)
tree560d7b1209e6a8d4798de9568e4b4a947c2ab42a /include/routing
parent215e8a72dc81e8a86dd5b3a8ca40fd2c7c6a0b9c (diff)
downloadaudiomanager-54c5e965fe8f9a53a78834028fd65c792493da2b.tar.gz
* added new interfaces & nsm support + nsm tests + fixed some unit tests + fixed rundown
Signed-off-by: christian linke <christian.linke@bmw.de>
Diffstat (limited to 'include/routing')
-rw-r--r--include/routing/IAmRoutingReceive.h186
-rw-r--r--include/routing/IAmRoutingSend.h92
2 files changed, 200 insertions, 78 deletions
diff --git a/include/routing/IAmRoutingReceive.h b/include/routing/IAmRoutingReceive.h
index 45097ab..fd88178 100644
--- a/include/routing/IAmRoutingReceive.h
+++ b/include/routing/IAmRoutingReceive.h
@@ -12,15 +12,15 @@
* this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*
- * \author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012
+ * \author Christian Mueller, christian.linke@bmw.de BMW 2011,2012
*
* \file
* For further information see http://www.genivi.org/.
*
* THIS CODE HAS BEEN GENERATED BY ENTERPRISE ARCHITECT GENIVI MODEL. PLEASE CHANGE ONLY IN ENTERPRISE ARCHITECT AND GENERATE AGAIN
*/
-#if !defined(EA_F3B2C6E5_FEAE_42a2_AEB2_59B2AE54EE05__INCLUDED_)
-#define EA_F3B2C6E5_FEAE_42a2_AEB2_59B2AE54EE05__INCLUDED_
+#if !defined(EA_36ADD7D1_5B51_4364_9C3B_4839230FAAC2__INCLUDED_)
+#define EA_36ADD7D1_5B51_4364_9C3B_4839230FAAC2__INCLUDED_
#include <vector>
#include <string>
@@ -32,19 +32,22 @@ class CAmSocketHandler;
}
-#define RoutingReceiveVersion "1.0"
+#include "audiomanagertypes.h"
+
+#define RoutingReceiveVersion "2.0"
namespace am {
/**
- * Routing Receive sendInterface description. This class implements everything from RoutingAdapter -> Audiomanager
- * There are two rules that have to be kept in mind when implementing against this interface:\n
- * \warning
- * 1. CALLS TO THIS INTERFACE ARE NOT THREAD SAFE !!!! \n
- * 2. YOU MAY NOT THE CALLING INTERFACE DURING AN SYNCHRONOUS OR ASYNCHRONOUS CALL THAT EXPECTS A RETURN VALUE.\n
- * \details
- * Violation these rules may lead to unexpected behavior! Nevertheless you can implement thread safe by using the deferred-call pattern described on the wiki which also helps to implement calls that are forbidden.\n
+ * Routing Receive sendInterface description. This class implements everything from RoutingAdapter -> Audiomanager
+ * There are two rules that have to be kept in mind when implementing against this interface:\n
+ * \warning
+ * 1. CALLS TO THIS INTERFACE ARE NOT THREAD SAFE !!!! \n
+ * 2. YOU MAY NOT CALL THE CALLING INTERFACE DURING AN SYNCHRONOUS OR ASYNCHRONOUS CALL THAT EXPECTS A RETURN VALUE.\n
+ * \details
+ * Violation these rules may lead to unexpected behavior! Nevertheless you can implement thread safe by using the deferred-
+ * call pattern described on the wiki which also helps to implement calls that are forbidden.\n
* For more information, please check CAmSerializer
* @author Christian Mueller
- * @created 06-Mar-2012 8:01:08 PM
+ * @created 16-Dez-2012 15:58:16
*/
class IAmRoutingReceive
{
@@ -59,6 +62,12 @@ namespace am {
}
/**
+ * This function returns the version of the interface
+ *
+ * @param version retrieves the verison of the interface
+ */
+ virtual void getInterfaceVersion(std::string& version) const =0;
+ /**
* acknowledges a asyncConnect
*
* @param handle
@@ -75,17 +84,17 @@ namespace am {
*/
virtual void ackDisconnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error) =0;
/**
- * acknowledges a asyncsetSinkVolume
+ * acknowledges a asyncsetSinkVolume
*
* @param handle
- * @param volume The current actual value that is set
+ * @param volume The current actual value that is set
* @param error E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
*/
virtual void ackSetSinkVolumeChange(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error) =0;
/**
* acknowledges a asyncsetSourceVolume
*
- * @param handle handle that belongs to the change
+ * @param handle handle that belongs to the change
* @param volume the current volume
* @param error E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
*/
@@ -150,7 +159,9 @@ namespace am {
*/
virtual void ackSinkVolumeTick(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume) =0;
/**
- * 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.
+ * 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.
* @return E_OK on success, E_UNKNOWN on error
*
* @param name
@@ -158,7 +169,7 @@ namespace am {
*/
virtual am_Error_e peekDomain(const std::string& name, am_domainID_t& domainID) =0;
/**
- * registers a domain
+ * registers a domain
* @return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
*
* @param domainData domainID in am_Domain_s must be 0!
@@ -166,7 +177,7 @@ namespace am {
*/
virtual am_Error_e registerDomain(const am_Domain_s& domainData, am_domainID_t& domainID) =0;
/**
- * deregisters a domain. All sources, sinks, gateways and crossfaders from that domain will be removed as well.
+ * deregisters a domain. All sources, sinks, gateways and crossfaders from that domain will be removed as well.
* @return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
*
* @param domainID < the nonde of the bus
@@ -175,21 +186,25 @@ namespace am {
/**
* registers a gateway. @return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
*
- * @param gatewayData In a fixed setup, the gatewayID must be below 100. In a dynamic setup, the gatewayID shall be 0. listSourceFormats and listSinkFormats are empty at registration time. Values are taken over when sources and sinks are registered.
- *
+ * @param gatewayData In a fixed setup, the gatewayID must be below 100. In a dynamic setup, the gatewayID shall be 0.
+ * listSourceFormats and listSinkFormats are empty at registration time. Values are taken over when sources and sinks are
+ * registered.
+ *
*
* @param gatewayID
*/
virtual am_Error_e registerGateway(const am_Gateway_s& gatewayData, am_gatewayID_t& gatewayID) =0;
/**
- * deregisters a gateway. Also removes all sinks and sources of the controlling domain.
+ * deregisters a gateway. Also removes all sinks and sources of the controlling domain.
* @return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
*
* @param gatewayID domainID of the control domain
*/
virtual am_Error_e deregisterGateway(const am_gatewayID_t gatewayID) =0;
/**
- * 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.
+ * 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.
* @return E_OK on success, E_UNKNOWN on error
*
* @param name ID is not valid since not created yet
@@ -197,22 +212,25 @@ namespace am {
*/
virtual am_Error_e peekSink(const std::string& name, am_sinkID_t& sinkID) =0;
/**
- * Registers a sink. If the sink is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
+ * Registers a sink. If the sink is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
* @return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
*
- * @param sinkData In a fixed setup, the sinkID within am_Sink_s must be below 100. In a dynamic setup the sinkID must be 0 in am_Sink_s.
+ * @param sinkData In a fixed setup, the sinkID within am_Sink_s must be below 100. In a dynamic setup the sinkID must
+ * be 0 in am_Sink_s.
* @param sinkID
*/
virtual am_Error_e registerSink(const am_Sink_s& sinkData, am_sinkID_t& sinkID) =0;
/**
- * deregisters a sink.
+ * deregisters a sink.
* @return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
*
* @param sinkID
*/
virtual am_Error_e deregisterSink(const am_sinkID_t sinkID) =0;
/**
- * 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.
+ * 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.
* @return E_OK on success, E_UNKNOWN on error
*
* @param name
@@ -220,37 +238,39 @@ namespace am {
*/
virtual am_Error_e peekSource(const std::string& name, am_sourceID_t& sourceID) =0;
/**
- * registers a source. If the source is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
+ * registers a source. If the source is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
* @return E_OK on success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID already exists
*
- * @param sourceData In a fixed setup, the sourceID within am_Source_s must be below 100. In a dynamic setup the sourceID must be 0 in am_Source_s
+ * @param sourceData In a fixed setup, the sourceID within am_Source_s must be below 100. In a dynamic setup the
+ * sourceID must be 0 in am_Source_s
* @param sourceID
*/
virtual am_Error_e registerSource(const am_Source_s& sourceData, am_sourceID_t& sourceID) =0;
/**
- * deregisters a source
+ * deregisters a source
* @return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
*
* @param sourceID
*/
virtual am_Error_e deregisterSource(const am_sourceID_t sourceID) =0;
/**
- * this function registers a crossfader.
+ * this function registers a crossfader.
* @return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
*
- * @param crossfaderData in a fixed setup, the crossfaderID must be below 100. In a dynamic setup the crossfasderID shall be 0
+ * @param crossfaderData in a fixed setup, the crossfaderID must be below 100. In a dynamic setup the crossfasderID
+ * shall be 0
* @param crossfaderID
*/
virtual am_Error_e registerCrossfader(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID) =0;
/**
- * this function deregisters a crossfader. removes all sources and sinks assiated as well.
+ * this function deregisters a crossfader. removes all sources and sinks assiated as well.
* @return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
*
* @param crossfaderID
*/
virtual am_Error_e deregisterCrossfader(const am_crossfaderID_t crossfaderID) =0;
/**
- * this function peeks a sourceclassID. It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
+ * this function peeks a sourceclassID. It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
* @return E_OK on succes, E_DATABASE_ERROR on error
*
* @param name
@@ -258,7 +278,7 @@ namespace am {
*/
virtual am_Error_e peekSourceClassID(const std::string& name, am_sourceClass_t& sourceClassID) =0;
/**
- * this function peeks a sourceclassID. It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
+ * this function peeks a sourceclassID. It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
* @return E_OK on succes, E_DATABASE_ERROR on error
*
* @param name
@@ -273,7 +293,7 @@ namespace am {
*/
virtual void hookInterruptStatusChange(const am_sourceID_t sourceID, const am_InterruptState_e interruptState) =0;
/**
- * This hook is called when all elements from a domain are registered.
+ * 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
*
* @param domainID
@@ -308,45 +328,115 @@ namespace am {
*/
virtual void hookTimingInformationChanged(const am_connectionID_t connectionID, const am_timeSync_t delay) =0;
/**
- * this function is used to send out all data that has been changed in an early state.
+ * this function is used to send out all data that has been changed in an early state.
* @return E_OK on success, E_UNKNOWN on error
*
* @param earlyData
*/
virtual void sendChangedData(const std::vector<am_EarlyData_s>& earlyData) =0;
/**
- * this function is used to retrieve a pointer to the dBusConnectionWrapper
+ * this function is used to retrieve a pointer to the dBusConnectionWrapper
* @return E_OK if pointer is valid, E_UKNOWN if AudioManager was compiled without DBus Support
*
- * @param dbusConnectionWrapper This is a wrapper class that is needed to keep dbus inclusions away from the interface. The DBusWrapperClass will return the pointer to the DbusConnection call (getDBusConnection)
+ * @param dbusConnectionWrapper This is a wrapper class that is needed to keep dbus inclusions away from the interface.
+ * The DBusWrapperClass will return the pointer to the DbusConnection call (getDBusConnection)
*/
virtual am_Error_e getDBusConnectionWrapper(CAmDbusWrapper*& dbusConnectionWrapper) const =0;
/**
- * 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.
+ * 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,
*
* @param socketHandler
*/
virtual am_Error_e getSocketHandler(CAmSocketHandler*& socketHandler) const =0;
/**
- * This function returns the version of the interface
- *
- * @param version retrieves the verison of the interface
- */
- virtual void getInterfaceVersion(std::string& version) const =0;
- /**
* confirms the setRoutingReady Command
*
* @param handle the handle that was given via setRoutingReady
+ * @param error E_OK if the ready command succeeded. E_UNKNOWN if an error happened.
*/
- virtual void confirmRoutingReady(const uint16_t handle) =0;
+ virtual void confirmRoutingReady(const uint16_t handle, const am_Error_e error) =0;
/**
* confirms the setRoutingRundown Command
*
* @param handle handle that was given via setRoutingRundown
+ * @param error E_OK if the ready command succeeded. E_UNKNOWN if an error happened.
+ */
+ virtual void confirmRoutingRundown(const uint16_t handle, const am_Error_e error) =0;
+ /**
+ * updates data of an gateway. @return E_OK on success, E_NON_EXISTENT if the gatewayID is not valid.
+ *
+ * @param gatewayID This is the new gateway data that has been updated. Please note that changing source and sink IDs,
+ *
+ * @param listSourceFormats
+ * @param listSinkFormats
+ * @param convertionMatrix
+ */
+ virtual am_Error_e updateGateway(const am_gatewayID_t gatewayID, std::vector<am_ConnectionFormat_e> listSourceFormats, const std::vector<am_ConnectionFormat_e> listSinkFormats, std::vector<bool> convertionMatrix) =0;
+ /**
+ * updates data of an gateway. @return E_OK on success, E_NON_EXISTENT if the sinkID is not valid.
+ *
+ * @param sinkID The sinkID of the sink
+ * @param sinkClassID
+ * @param listSoundProperties
+ * @param listConnectionFormats
+ * @param listMainSoundProperties
+ */
+ virtual 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_ConnectionFormat_e> listConnectionFormats, std::vector<am_MainSoundProperty_s> listMainSoundProperties) =0;
+ /**
+ * updates data of an source. @return E_OK on success, E_NON_EXISTENT if the sourceID in the struct is not valid.
+ * Please note that only the following data out of am_Source_s have effect when they are changed:
+ * sourceClassID,
+ * listSoundProperties,
+ * listConnectionFormats,
+ * listMainSoundProperties
+ *
+ * @param sourceID the sourceID of the source
+ * @param sourceClassID
+ * @param listSoundProperties
+ * @param listConnectionFormats
+ * @param listMainSoundProperties
+ */
+ virtual am_Error_e updateSource(const am_sourceID_t sourceID, const am_sourceClass_t sourceClassID, std::vector<am_SoundProperty_s> listSoundProperties, std::vector<am_ConnectionFormat_e> listConnectionFormats, const std::vector<am_MainSoundProperty_s> listMainSoundProperties) =0;
+ /**
+ * acknowledges a asyncsetSinkVolume
+ *
+ * @param handle
+ * @param listvolumes The list of volumes that have been set. ramp and time values have no meaning when the struct is
+ * used here.
+ * @param error E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ */
+ virtual void ackSetVolumes(const am_Handle_s handle, const std::vector<am_Volumes_s> listvolumes, const am_Error_e error) =0;
+ /**
+ * The acknowledge of the SinkNotificationConfiguration
+ *
+ * @param handle
+ * @param error
+ */
+ virtual void ackSinkNotificationConfiguration(const am_Handle_s handle, const am_Error_e error) =0;
+ /**
+ * The acknowledge of the SourceNotificationConfiguration
+ *
+ * @param handle
+ * @param error
+ */
+ virtual void ackSourceNotificationConfiguration(const am_Handle_s handle, const am_Error_e error) =0;
+ /**
+ * is called whenever a notified value needs to be send
+ *
+ * @param sinkID The sinkID of the sink where the data changed
+ * @param payload The payload
+ */
+ virtual void hookSinkNotificationDataChange(const am_sinkID_t sinkID, const am_NotificationPayload_s payload) =0;
+ /**
+ * is called whenever a notified value needs to be send
+ *
+ * @param sourceID The sinkID of the sink where the data changed
+ * @param payload The payload
*/
- virtual void confirmRoutingRundown(const uint16_t handle) =0;
+ virtual void hookSourceNotificationDataChange(const am_sourceID_t sourceID, const am_NotificationPayload_s payload) =0;
};
}
-#endif // !defined(EA_F3B2C6E5_FEAE_42a2_AEB2_59B2AE54EE05__INCLUDED_)
+#endif // !defined(EA_36ADD7D1_5B51_4364_9C3B_4839230FAAC2__INCLUDED_)
diff --git a/include/routing/IAmRoutingSend.h b/include/routing/IAmRoutingSend.h
index 4280931..d077c73 100644
--- a/include/routing/IAmRoutingSend.h
+++ b/include/routing/IAmRoutingSend.h
@@ -12,15 +12,15 @@
* this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*
- * \author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012
+ * \author Christian Mueller, christian.linke@bmw.de BMW 2011,2012
*
* \file
* For further information see http://www.genivi.org/.
*
* THIS CODE HAS BEEN GENERATED BY ENTERPRISE ARCHITECT GENIVI MODEL. PLEASE CHANGE ONLY IN ENTERPRISE ARCHITECT AND GENERATE AGAIN
*/
-#if !defined(EA_39D31D03_9B43_4dfe_B134_B2A969767ECB__INCLUDED_)
-#define EA_39D31D03_9B43_4dfe_B134_B2A969767ECB__INCLUDED_
+#if !defined(EA_3921A27D_CF17_4db4_BE29_6A5BD7C5FE53__INCLUDED_)
+#define EA_3921A27D_CF17_4db4_BE29_6A5BD7C5FE53__INCLUDED_
#include <vector>
#include <string>
@@ -30,21 +30,24 @@ namespace am {
class IAmRoutingReceive;
}
+#include "audiomanagertypes.h"
#include "IAmRoutingReceive.h"
+#include "projecttypes.h"
-#define RoutingSendVersion "1.0"
+#define RoutingSendVersion "2.0"
namespace am {
/**
- * This class implements everything from Audiomanager -> RoutingAdapter
- * There are two rules that have to be kept in mind when implementing against this interface:\n
- * \warning
- * 1. CALLS TO THIS INTERFACE ARE NOT THREAD SAFE !!!! \n
- * 2. YOU MAY NOT THE CALLING INTERFACE DURING AN SYNCHRONOUS OR ASYNCHRONOUS CALL THAT EXPECTS A RETURN VALUE.\n
- * \details
- * Violation these rules may lead to unexpected behavior! Nevertheless you can implement thread safe by using the deferred-call pattern described on the wiki which also helps to implement calls that are forbidden.\n
+ * This class implements everything from Audiomanager -> RoutingAdapter
+ * There are two rules that have to be kept in mind when implementing against this interface:\n
+ * \warning
+ * 1. CALLS TO THIS INTERFACE ARE NOT THREAD SAFE !!!! \n
+ * 2. YOU MAY NOT CALL THE CALLING INTERFACE DURING AN SYNCHRONOUS OR ASYNCHRONOUS CALL THAT EXPECTS A RETURN VALUE.\n
+ * \details
+ * Violation these rules may lead to unexpected behavior! Nevertheless you can implement thread safe by using the deferred-
+ * call pattern described on the wiki which also helps to implement calls that are forbidden.\n
* For more information, please check CAmSerializer
* @author Christian Mueller
- * @created 06-Mar-2012 8:01:09 PM
+ * @created 16-Dez-2012 15:58:16
*/
class IAmRoutingSend
{
@@ -59,6 +62,12 @@ namespace am {
}
/**
+ * This function returns the version of the interface
+ *
+ * @param version
+ */
+ virtual void getInterfaceVersion(std::string& version) const =0;
+ /**
* starts up the interface. In the implementations, here is the best place for init routines.
*
* @param routingreceiveinterface pointer to the receive interface
@@ -77,14 +86,14 @@ namespace am {
*/
virtual void setRoutingRundown(const uint16_t handle) =0;
/**
- * aborts an asynchronous action.
+ * aborts an asynchronous action.
* @return E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if handle was not found
*
* @param handle
*/
virtual am_Error_e asyncAbort(const am_Handle_s handle) =0;
/**
- * connects a source to a sink
+ * connects a source to a sink
* @return E_OK on success, E_UNKNOWN on error, E_WRONG_FORMAT in case am_ConnectionFormat_e does not match
*
* @param handle
@@ -95,7 +104,7 @@ namespace am {
*/
virtual am_Error_e asyncConnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_ConnectionFormat_e connectionFormat) =0;
/**
- * disconnect a connection with given connectionID
+ * disconnect a connection with given connectionID
* @return E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if connection was not found
*
* @param handle
@@ -103,7 +112,8 @@ namespace am {
*/
virtual am_Error_e asyncDisconnect(const am_Handle_s handle, const am_connectionID_t connectionID) =0;
/**
- * this method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly set the value. The difference is made through the ramptype.
+ * this method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly
+ * set the value. The difference is made through the ramptype.
* @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if new volume is out of range
*
* @param handle
@@ -114,8 +124,9 @@ namespace am {
*/
virtual am_Error_e asyncSetSinkVolume(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_RampType_e ramp, const am_time_t time) =0;
/**
- * sets the volume of a source. This method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly set the value. The difference is made through the ramptype.
- * @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of range.
+ * sets the volume of a source. This method is used to set the volume of a sink. This function is used to drive ramps, to
+ * mute or unmute or directly set the value. The difference is made through the ramptype.
+ * @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of range.
* triggers the acknowledge ackSourceVolumeChange
*
* @param handle
@@ -126,7 +137,7 @@ namespace am {
*/
virtual am_Error_e asyncSetSourceVolume(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume, const am_RampType_e ramp, const am_time_t time) =0;
/**
- * This function is used to set the source state of a particular source.
+ * This function is used to set the source state of a particular source.
* @return E_OK on success, E_UNKNOWN on error
*
* @param handle
@@ -135,7 +146,7 @@ namespace am {
*/
virtual am_Error_e asyncSetSourceState(const am_Handle_s handle, const am_sourceID_t sourceID, const am_SourceState_e state) =0;
/**
- * this function sets the sinksoundproperty.
+ * this function sets the sinksoundproperty.
* @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
*
* @param handle
@@ -144,7 +155,7 @@ namespace am {
*/
virtual am_Error_e asyncSetSinkSoundProperties(const am_Handle_s handle, const am_sinkID_t sinkID, const std::vector<am_SoundProperty_s>& listSoundProperties) =0;
/**
- * this function sets the sinksoundproperty.
+ * this function sets the sinksoundproperty.
* @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
*
* @param handle
@@ -153,7 +164,7 @@ namespace am {
*/
virtual am_Error_e asyncSetSinkSoundProperty(const am_Handle_s handle, const am_sinkID_t sinkID, const am_SoundProperty_s& soundProperty) =0;
/**
- * this function sets the sourcesoundproperty.
+ * this function sets the sourcesoundproperty.
* @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
*
* @param handle
@@ -162,7 +173,7 @@ namespace am {
*/
virtual am_Error_e asyncSetSourceSoundProperties(const am_Handle_s handle, const am_sourceID_t sourceID, const std::vector<am_SoundProperty_s>& listSoundProperties) =0;
/**
- * this function sets the sourcesoundproperty.
+ * this function sets the sourcesoundproperty.
* @return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
*
* @param handle
@@ -171,7 +182,7 @@ namespace am {
*/
virtual am_Error_e asyncSetSourceSoundProperty(const am_Handle_s handle, const am_sourceID_t sourceID, const am_SoundProperty_s& soundProperty) =0;
/**
- * this function triggers crossfading.
+ * this function triggers crossfading.
* @return E_OK on success, E_UNKNOWN on error
*
* @param handle
@@ -182,7 +193,7 @@ namespace am {
*/
virtual am_Error_e asyncCrossFade(const am_Handle_s handle, const am_crossfaderID_t crossfaderID, const am_HotSink_e hotSink, const am_RampType_e rampType, const am_time_t time) =0;
/**
- * this function is used for early and late audio functions to set the domain state
+ * this function is used for early and late audio functions to set the domain state
* @return E_OK on success, E_UNKNOWN on error
*
* @param domainID
@@ -190,19 +201,40 @@ namespace am {
*/
virtual am_Error_e setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState) =0;
/**
- * this method is used to retrieve the busname during startup of the plugin. Needs to be implemented
+ * this method is used to retrieve the busname during startup of the plugin. Needs to be implemented
* @return E_OK on success, E_UNKNOWN on error
*
* @param BusName
*/
virtual am_Error_e returnBusName(std::string& BusName) const =0;
/**
- * This function returns the version of the interface
+ * This command sets multiple source or and sink volumes within a domain at a time. It can be used to synchronize volume
+ * setting events.
+ * @return E_OK on success, E_UNKNOWN on error.
*
- * @param version
+ * @param handle the handle
+ * @param listVolumes a list of volumes that shall be set a the same time
*/
- virtual void getInterfaceVersion(std::string& version) const =0;
+ virtual am_Error_e asyncSetVolumes(const am_Handle_s handle, const std::vector<am_Volumes_s>& listVolumes) =0;
+ /**
+ * sets the notification configuration of a source.
+ * @return E_OK on success, E_UNKNOWN on error.
+ *
+ * @param handle The handle for this operation.
+ * @param sinkID the sourceID of the source the notification should be set
+ * @param notificationConfiguration The notification configuration
+ */
+ virtual am_Error_e asyncSetSinkNotificationConfiguration(const am_Handle_s handle, const am_sinkID_t sinkID, const am_NotificationConfiguration_s& notificationConfiguration) =0;
+ /**
+ * sets the notification configuration of a source.
+ * @return E_OK on success, E_UNKNOWN on error.
+ *
+ * @param handle The handle for this operation.
+ * @param sourceID the sourceID of the source the notification should be set
+ * @param notificationConfiguration The notification configuration
+ */
+ virtual am_Error_e asyncSetSourceNotificationConfiguration(const am_Handle_s handle, const am_sourceID_t sourceID, const am_NotificationConfiguration_s& notificationConfiguration) =0;
};
}
-#endif // !defined(EA_39D31D03_9B43_4dfe_B134_B2A969767ECB__INCLUDED_)
+#endif // !defined(EA_3921A27D_CF17_4db4_BE29_6A5BD7C5FE53__INCLUDED_)