connect lv2 output controls
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginlv2.h
index 9b449b48ab44e3d9f324fbd1457043f7cc79bcaf..01fc461f94baa8f61f9d701c05dd2602b3cf5a42 100644 (file)
@@ -15,10 +15,13 @@ typedef struct {
        int nb_inputs, nb_outputs;
 } shm_bfr_t;
 
        int nb_inputs, nb_outputs;
 } shm_bfr_t;
 
-#define TYP_AUDIO   1
-#define TYP_CONTROL 2
-#define TYP_ATOM    4
-#define TYP_ALL    ~0
+#define PORTS_AUDIO   0x01
+#define PORTS_CONTROL 0x02
+#define PORTS_ATOM    0x04
+#define PORTS_ALL (PORTS_AUDIO | PORTS_CONTROL | PORTS_ATOM)
+#define PORTS_INPUT   0x08
+#define PORTS_OUTPUT  0x10
+#define PORTS_UPDATE  0x20
 
 class PluginLV2
 {
 
 class PluginLV2
 {
@@ -39,7 +42,7 @@ public:
 
        static LV2_URID uri_table_map(LV2_URID_Map_Handle handle, const char *uri);
        static const char *uri_table_unmap(LV2_URID_Map_Handle handle, LV2_URID urid);
 
        static LV2_URID uri_table_map(LV2_URID_Map_Handle handle, const char *uri);
        static const char *uri_table_unmap(LV2_URID_Map_Handle handle, LV2_URID urid);
-       void connect_ports(PluginLV2ClientConfig &conf, int typ=TYP_ALL);
+       void connect_ports(PluginLV2ClientConfig &conf, int ports);
        void del_buffer();
        void new_buffer(int64_t sz);
        shm_bfr_t *shm_buffer(int shmid);
        void del_buffer();
        void new_buffer(int64_t sz);
        shm_bfr_t *shm_buffer(int shmid);
@@ -77,7 +80,6 @@ public:
 };
 
 typedef struct { int sample_rate;  char path[1]; } open_bfr_t;
 };
 
 typedef struct { int sample_rate;  char path[1]; } open_bfr_t;
-typedef struct { int idx;  float value; } control_bfr_t;
 
 enum { NO_COMMAND,
        LV2_OPEN,
 
 enum { NO_COMMAND,
        LV2_OPEN,
@@ -85,7 +87,6 @@ enum { NO_COMMAND,
        LV2_UPDATE,
        LV2_SHOW,
        LV2_HIDE,
        LV2_UPDATE,
        LV2_SHOW,
        LV2_HIDE,
-       LV2_SET,
        LV2_SHMID,
        NB_COMMANDS };
 
        LV2_SHMID,
        NB_COMMANDS };