summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon
diff options
context:
space:
mode:
authorFrank Herchet <frank.fh.herchet@bmw.de>2012-06-26 14:06:30 +0200
committerchristian mueller <christian.ei.mueller@bmw.de>2012-06-26 18:31:17 +0200
commit2718289a06d74796886a33ff10755c7891a1dd16 (patch)
treec47995fc5b0c28e5a53dc0cd0538edcd66c74e3a /AudioManagerDaemon
parent7cf8a24e73f57fcdf6974ae860ab01e38b40b100 (diff)
downloadaudiomanager-2718289a06d74796886a33ff10755c7891a1dd16.tar.gz
* fix setSinkSoundProperty in telnetserver
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r--AudioManagerDaemon/include/CAmTelnetMenuHelper.h4
-rw-r--r--AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp8
2 files changed, 7 insertions, 5 deletions
diff --git a/AudioManagerDaemon/include/CAmTelnetMenuHelper.h b/AudioManagerDaemon/include/CAmTelnetMenuHelper.h
index 727c49a..3f2256e 100644
--- a/AudioManagerDaemon/include/CAmTelnetMenuHelper.h
+++ b/AudioManagerDaemon/include/CAmTelnetMenuHelper.h
@@ -127,8 +127,8 @@ private:
void setDisconnectConnIdExec(std::queue<std::string> & CmdQueue, int & filedescriptor);
static void setSourceSoundProperties(std::queue<std::string> & CmdQueue, int & filedescriptor);
void setSourceSoundPropertiesExec(std::queue<std::string> & CmdQueue, int & filedescriptor);
- static void setSinkSoundProperties(std::queue<std::string> & CmdQueue, int & filedescriptor);
- void setSinkSoundPropertiesExec(std::queue<std::string> & CmdQueue, int & filedescriptor);
+ static void setSinkSoundProperty(std::queue<std::string> & CmdQueue, int & filedescriptor);
+ void setSinkSoundPropertyExec(std::queue<std::string> & CmdQueue, int & filedescriptor);
static void setSinkVolume(std::queue<std::string> & CmdQueue, int & filedescriptor);
void setSinkVolumeExec(std::queue<std::string> & CmdQueue, int & filedescriptor);
diff --git a/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp b/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp
index fda6b01..7fedce5 100644
--- a/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp
+++ b/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp
@@ -95,6 +95,7 @@ void CAmTelnetMenuHelper::createCommandMaps()
mSetCommands.insert(std::make_pair("routing", sCommandPrototypeInfo("use 'routing sourceId sinkId' to get all\n\t possible routes between a sourceID and a sinkID", &CAmTelnetMenuHelper::setRoutingCommand)));
mSetCommands.insert(std::make_pair("disc", sCommandPrototypeInfo("use 'disc connectionID' to disconnect \n\t this connection", &CAmTelnetMenuHelper::setDisconnectConnId)));
mSetCommands.insert(std::make_pair("sinkvolume", sCommandPrototypeInfo("use 'sinkvolume sinkID volume' to set \n\t absorption in db of sink", &CAmTelnetMenuHelper::setSinkVolume)));
+ mSetCommands.insert(std::make_pair("sinkprop", sCommandPrototypeInfo("use 'sinkprop type value' to set \n\t a specific sinksoundproperty", &CAmTelnetMenuHelper::setSinkSoundProperty)));
// Get commands
mGetCommands.insert(std::make_pair("help", sCommandPrototypeInfo(std::string("show all possible commands"), &CAmTelnetMenuHelper::helpCommand)));
@@ -1067,14 +1068,14 @@ void CAmTelnetMenuHelper::setSourceSoundPropertiesExec(std::queue<std::string> &
}
/****************************************************************************/
-void CAmTelnetMenuHelper::setSinkSoundProperties(std::queue<std::string> & CmdQueue, int & filedescriptor)
+void CAmTelnetMenuHelper::setSinkSoundProperty(std::queue<std::string> & CmdQueue, int & filedescriptor)
/****************************************************************************/
{
- instance->setConnectionExec(CmdQueue, filedescriptor);
+ instance->setSinkSoundPropertyExec(CmdQueue, filedescriptor);
}
/****************************************************************************/
-void CAmTelnetMenuHelper::setSinkSoundPropertiesExec(std::queue<std::string> & CmdQueue, int & filedescriptor)
+void CAmTelnetMenuHelper::setSinkSoundPropertyExec(std::queue<std::string> & CmdQueue, int & filedescriptor)
/****************************************************************************/
{
unsigned int tmpType = 0;
@@ -1186,6 +1187,7 @@ void CAmTelnetMenuHelper::setSinkVolumeExec(std::queue<std::string> & CmdQueue,
}
}
+
/****************************************************************************/
void CAmTelnetMenuHelper::listPluginsCommand(std::queue<std::string> & CmdQueue, int & filedescriptor)
/****************************************************************************/