mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 11:49:59 +01:00
Added Fading target for OSC session
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
|
||||
#define OSC_SESSION "/session"
|
||||
#define OSC_SESSION_VERSION "/version"
|
||||
#define OSC_SESSION_FADE "/fade"
|
||||
|
||||
#define OSC_MULTITOUCH "/multitouch"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user