mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Fixed OSC feedback after source change. Added OSC command to lock source.
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user