[DEV] volume master can be change
This commit is contained in:
parent
8e53a56b2a
commit
0714b0f851
@ -158,7 +158,7 @@ void airtalgo::Volume::updateVolumeValues() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
volumedB += it->getVolume();
|
volumedB += it->getVolume();
|
||||||
AIRTALGO_DEBUG("append volume : '" << it->getName() << " vol=" << it->getVolume() << "dB");
|
AIRTALGO_VERBOSE("append volume : '" << it->getName() << " vol=" << it->getVolume() << "dB");
|
||||||
}
|
}
|
||||||
AIRTALGO_DEBUG(" Total volume : " << volumedB << "dB nbVolume=" << m_volumeList.size());
|
AIRTALGO_DEBUG(" Total volume : " << volumedB << "dB nbVolume=" << m_volumeList.size());
|
||||||
m_volumeAppli = std::pow(10.0f, volumedB/20.0f);
|
m_volumeAppli = std::pow(10.0f, volumedB/20.0f);
|
||||||
@ -357,7 +357,9 @@ bool airtalgo::Volume::setParameter(const std::string& _parameter, const std::st
|
|||||||
}
|
}
|
||||||
if (it->getName() == "FLOW") {
|
if (it->getName() == "FLOW") {
|
||||||
float value = 0;
|
float value = 0;
|
||||||
sscanf(_value.c_str(), "%fdB", &value);
|
if (sscanf(_value.c_str(), "%fdB", &value) != 1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// TODO : Check if out of range ...
|
// TODO : Check if out of range ...
|
||||||
it->setVolume(value);
|
it->setVolume(value);
|
||||||
AIRTALGO_DEBUG("Set volume : FLOW = " << value << " dB (from:" << _value << ")");
|
AIRTALGO_DEBUG("Set volume : FLOW = " << value << " dB (from:" << _value << ")");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user