Fixed OSC feedback after source change. Added OSC command to lock source.

This commit is contained in:
Bruno Herbelin
2021-12-27 23:36:28 +01:00
parent 4b8efabc5f
commit ff48877d16
4 changed files with 84 additions and 43 deletions

View File

@@ -73,6 +73,17 @@ void SetAlpha::update(Source *s, float)
finished_ = true;
}
SetLock::SetLock(bool on) : SourceCallback(), lock_(on)
{
}
void SetLock::update(Source *s, float)
{
if (s)
s->setLocked(lock_);
finished_ = true;
}
Loom::Loom(float da, float duration) : SourceCallback(), speed_(da),
duration_(duration), progress_(0.f)