mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-22 07:39:59 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user