Added Fading target for OSC session

This commit is contained in:
Bruno Herbelin
2022-10-15 19:06:52 +02:00
parent 3c32f1da6e
commit a0f55bfcb5
2 changed files with 10 additions and 0 deletions

View File

@@ -858,6 +858,15 @@ bool Control::receiveSessionAttribute(const std::string &attribute,
}
send_feedback = true;
}
else if ( attribute.compare(OSC_SESSION_FADE) == 0) {
float v = 0.f, t = 0.f;
arguments >> v;
if (arguments.Eos())
arguments >> osc::EndMessage;
else
arguments >> t >> osc::EndMessage;
Mixer::manager().session()->setFadingTarget(v, t);
}
#ifdef CONTROL_DEBUG
else {
Log::Info(CONTROL_OSC_MSG "Ignoring attribute '%s' for target 'session'", attribute.c_str());

View File

@@ -59,6 +59,7 @@
#define OSC_SESSION "/session"
#define OSC_SESSION_VERSION "/version"
#define OSC_SESSION_FADE "/fade"
#define OSC_MULTITOUCH "/multitouch"