Implementation of user defined mixing deactivation limit

Mixing view handles to grab and scale limbo area. Saving of user defined limit in Session (and snapshot). Testing for source activation outside of update during session update loop.
This commit is contained in:
Bruno Herbelin
2021-12-08 23:55:27 +01:00
parent 315a8534d5
commit baa6ddb401
13 changed files with 257 additions and 27 deletions

View File

@@ -291,8 +291,18 @@ void SessionLoader::load(XMLElement *sessionNode)
return;
}
if (sessionNode != nullptr && session_ != nullptr) {
if (sessionNode != nullptr && session_ != nullptr)
{
//
// session attributes
//
float t = MIXING_MIN_THRESHOLD;
sessionNode->QueryFloatAttribute("activationThreshold", &t);
session_->setActivationThreshold(t);
//
// source lists
//
XMLElement* sourceNode = sessionNode->FirstChildElement("Source");
for( ; sourceNode ; sourceNode = sourceNode->NextSiblingElement())
{