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

@@ -12,6 +12,7 @@ public:
typedef enum {
CALLBACK_GENERIC = 0,
CALLBACK_ALPHA,
CALLBACK_LOCK,
CALLBACK_LOOM,
CALLBACK_DEPTH,
CALLBACK_PLAY,
@@ -71,6 +72,16 @@ public:
CallbackType type () override { return CALLBACK_LOOM; }
};
class SetLock : public SourceCallback
{
bool lock_;
public:
SetLock(bool on);
void update(Source *s, float) override;
CallbackType type () override { return CALLBACK_LOCK; }
};
class SetDepth : public SourceCallback
{
float duration_;