Improved OSC sync

Accept OSC request to sync source by name or id. Changed OSC seek request to be by percent target
This commit is contained in:
Bruno Herbelin
2022-08-17 19:11:21 +02:00
parent d62004eadf
commit dd92f2dccb
3 changed files with 14 additions and 7 deletions

View File

@@ -180,13 +180,13 @@ public:
class Seek : public SourceCallback
{
float target_time_;
float target_;
public:
Seek (float time = 0.f);
float value () const { return target_time_;}
void setValue (float t) { target_time_ = t; }
float value () const { return target_;}
void setValue (float t) { target_ = t; }
void update (Source *s, float dt) override;
SourceCallback *clone() const override;