X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginlv2.h;h=01fc461f94baa8f61f9d701c05dd2602b3cf5a42;hp=9b449b48ab44e3d9f324fbd1457043f7cc79bcaf;hb=32b57dd9cdbb2fc0000a9f72ff766e4030c50b24;hpb=4df355ca6b59270613adae72f34cad54912e9e2e diff --git a/cinelerra-5.1/cinelerra/pluginlv2.h b/cinelerra-5.1/cinelerra/pluginlv2.h index 9b449b48..01fc461f 100644 --- a/cinelerra-5.1/cinelerra/pluginlv2.h +++ b/cinelerra-5.1/cinelerra/pluginlv2.h @@ -15,10 +15,13 @@ typedef struct { 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 { @@ -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); - 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); @@ -77,7 +80,6 @@ public: }; 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, @@ -85,7 +87,6 @@ enum { NO_COMMAND, LV2_UPDATE, LV2_SHOW, LV2_HIDE, - LV2_SET, LV2_SHMID, NB_COMMANDS };