From 472556ff28b99db416d6f0a926c32ea28698e1a3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 4 Oct 2016 00:46:56 -0400 Subject: eg-sampler: Add waveform display to UI --- plugins/eg-sampler.lv2/uris.h | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'plugins/eg-sampler.lv2/uris.h') diff --git a/plugins/eg-sampler.lv2/uris.h b/plugins/eg-sampler.lv2/uris.h index ceeddc0..9e44cf4 100644 --- a/plugins/eg-sampler.lv2/uris.h +++ b/plugins/eg-sampler.lv2/uris.h @@ -24,9 +24,9 @@ #include "lv2/lv2plug.in/ns/ext/parameters/parameters.h" #define EG_SAMPLER_URI "http://lv2plug.in/plugins/eg-sampler" -#define EG_SAMPLER__sample EG_SAMPLER_URI "#sample" #define EG_SAMPLER__applySample EG_SAMPLER_URI "#applySample" #define EG_SAMPLER__freeSample EG_SAMPLER_URI "#freeSample" +#define EG_SAMPLER__sample EG_SAMPLER_URI "#sample" typedef struct { LV2_URID atom_Float; @@ -36,12 +36,13 @@ typedef struct { LV2_URID atom_URID; LV2_URID atom_eventTransfer; LV2_URID eg_applySample; - LV2_URID eg_sample; LV2_URID eg_freeSample; + LV2_URID eg_sample; LV2_URID midi_Event; LV2_URID param_gain; LV2_URID patch_Get; LV2_URID patch_Set; + LV2_URID patch_accept; LV2_URID patch_property; LV2_URID patch_value; } SamplerURIs; @@ -62,17 +63,21 @@ map_sampler_uris(LV2_URID_Map* map, SamplerURIs* uris) uris->param_gain = map->map(map->handle, LV2_PARAMETERS__gain); uris->patch_Get = map->map(map->handle, LV2_PATCH__Get); uris->patch_Set = map->map(map->handle, LV2_PATCH__Set); + uris->patch_accept = map->map(map->handle, LV2_PATCH__accept); uris->patch_property = map->map(map->handle, LV2_PATCH__property); uris->patch_value = map->map(map->handle, LV2_PATCH__value); } /** - * Write a message like the following to @p forge: - * [] - * a patch:Set ; - * patch:property eg:sample ; - * patch:value . - */ + Write a message like the following to `forge`: + [source,n3] + ---- + [] + a patch:Set ; + patch:property eg:sample ; + patch:value . + ---- +*/ static inline LV2_Atom_Forge_Ref write_set_file(LV2_Atom_Forge* forge, const SamplerURIs* uris, @@ -93,12 +98,15 @@ write_set_file(LV2_Atom_Forge* forge, } /** - * Get the file path from a message like: - * [] - * a patch:Set ; - * patch:property eg:sample ; - * patch:value . - */ + Get the file path from `obj` which is a message like: + [source,n3] + ---- + [] + a patch:Set ; + patch:property eg:sample ; + patch:value . + ---- +*/ static inline const char* read_set_file(const SamplerURIs* uris, const LV2_Atom_Object* obj) -- cgit v1.2.1