Improved OSC sync

Accept OSC request to sync source by name or id. Changed OSC seek request to be by percent target
This commit is contained in:
Bruno Herbelin
2022-08-17 19:11:21 +02:00
parent d62004eadf
commit dd92f2dccb
3 changed files with 14 additions and 7 deletions

View File

@@ -680,6 +680,11 @@ bool Control::receiveSourceAttribute(Source *target, const std::string &attribut
arguments >> t >> osc::EndMessage;
target->call( new Seek( t ), true );
}
/// e.g. '/vimix/name/sync'
else if ( attribute.compare(OSC_SYNC) == 0) {
// this will require to send feedback status about source
send_feedback = true;
}
#ifdef CONTROL_DEBUG
else {
Log::Info(CONTROL_OSC_MSG "Ignoring attribute '%s' for target %s.", attribute.c_str(), target->name().c_str());