New Reload source function

Generalize the reload of stream source to all types of sources. Enable OSC command to reload source.
This commit is contained in:
Bruno Herbelin
2023-11-14 11:12:21 +01:00
parent 7b9e71df40
commit 6735e5eaaa
13 changed files with 45 additions and 5 deletions

View File

@@ -612,6 +612,10 @@ bool Control::receiveSourceAttribute(Source *target, const std::string &attribut
else if ( attribute.compare(OSC_SOURCE_REPLAY) == 0) {
target->call( new RePlay() );
}
/// e.g. '/vimix/current/reload'
else if ( attribute.compare(OSC_SOURCE_RELOAD) == 0) {
target->reload();
}
/// e.g. '/vimix/current/alpha f 0.3'
else if ( attribute.compare(OSC_SOURCE_LOCK) == 0) {
float x = 1.f;