Commit 6858422e authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

trying to acitvate the mic again

parent 4fcd7083
......@@ -118,18 +118,21 @@ void OverlayController::treeItemClicked(QTreeWidgetItem * item, int column)
value[0] = -1;
if (m_ts3.getClientSelfVariableAsInt(m_SCHID, CLIENT_OUTPUT_MUTED, &value[1]) != ERROR_ok)
value[1] = -1;
if (m_ts3.getClientSelfVariableAsInt(m_SCHID, CLIENT_INPUT_HARDWARE, &value[2]) != ERROR_ok)
if (m_ts3.getClientSelfVariableAsInt(m_SCHID, CLIENT_INPUT_DEACTIVATED, &value[2]) != ERROR_ok)
value[2] = -1;
// we have all information, nothing is lost
if (value[0] != -1 && value[1] != -1 && value[3] != -1)
{
// something was disabled => enable everything
if (value[0] || value[1] || !value[2])
if (value[2])
{
m_ts3.setClientSelfVariableAsInt(m_SCHID, CLIENT_INPUT_DEACTIVATED, 0);
}
else if (value[0] || value[1])
{
m_ts3.setClientSelfVariableAsInt(m_SCHID, CLIENT_INPUT_MUTED, 0);
m_ts3.setClientSelfVariableAsInt(m_SCHID, CLIENT_OUTPUT_MUTED, 0);
m_ts3.setClientSelfVariableAsInt(m_SCHID, CLIENT_INPUT_HARDWARE, 1);
}
// nothing was disabled => disable everything
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment