summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon
diff options
context:
space:
mode:
authorAleksandar Donchev <Aleksander.Donchev@partner.bmw.de>2014-11-18 16:03:11 +0100
committerAleksandar Donchev <Aleksander.Donchev@partner.bmw.de>2014-11-18 16:03:11 +0100
commitc43d2f869946642e173554923904e6c92881a008 (patch)
tree3ac6d27feebe734ca9e265a00aa58db8fdc7f350 /AudioManagerDaemon
parent97e2c0ec77ab2d7508752e73cde80194a82555b5 (diff)
downloadaudiomanager-c43d2f869946642e173554923904e6c92881a008.tar.gz
* Lazy lookup for static registered sources and sinks.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r--AudioManagerDaemon/include/CAmRoutingReceiver.h2
-rw-r--r--AudioManagerDaemon/src/CAmRoutingReceiver.cpp10
2 files changed, 12 insertions, 0 deletions
diff --git a/AudioManagerDaemon/include/CAmRoutingReceiver.h b/AudioManagerDaemon/include/CAmRoutingReceiver.h
index bf42f6b..be81529 100644
--- a/AudioManagerDaemon/include/CAmRoutingReceiver.h
+++ b/AudioManagerDaemon/include/CAmRoutingReceiver.h
@@ -92,6 +92,8 @@ public:
void ackSourceNotificationConfiguration(const am_Handle_s handle, const am_Error_e error) ;
void hookSinkNotificationDataChange(const am_sinkID_t sinkID, const am_NotificationPayload_s& payload) ;
void hookSourceNotificationDataChange(const am_sourceID_t sourceID, const am_NotificationPayload_s& payload) ;
+ am_Error_e getDomainOfSink(const am_sinkID_t sinkID, am_domainID_t& domainID);
+ am_Error_e getDomainOfSource(const am_sourceID_t sourceID, am_domainID_t& domainID);
uint16_t getStartupHandle(); //!< returns a startup handle
uint16_t getRundownHandle(); //!< returns a rundown handle
diff --git a/AudioManagerDaemon/src/CAmRoutingReceiver.cpp b/AudioManagerDaemon/src/CAmRoutingReceiver.cpp
index 67bc911..29f7db7 100644
--- a/AudioManagerDaemon/src/CAmRoutingReceiver.cpp
+++ b/AudioManagerDaemon/src/CAmRoutingReceiver.cpp
@@ -479,6 +479,16 @@ void CAmRoutingReceiver::hookSourceNotificationDataChange(const am_sourceID_t so
mpControlSender->hookSourceNotificationDataChanged(sourceID,payload);
}
+am_Error_e CAmRoutingReceiver::getDomainOfSink(const am_sinkID_t sinkID, am_domainID_t& domainID)
+{
+ return mpDatabaseHandler->getDomainOfSink(sinkID,domainID);
+}
+
+am_Error_e CAmRoutingReceiver::getDomainOfSource(const am_sourceID_t sourceID, am_domainID_t& domainID)
+{
+ return mpDatabaseHandler->getDomainOfSource(sourceID,domainID);
+}
+
void am::CAmRoutingReceiver::waitOnRundown(bool rundown)
{
mWaitRundown = rundown;