diff options
author | David Robillard <d@drobilla.net> | 2018-09-22 22:55:06 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-22 22:55:48 +0200 |
commit | d976b0df20c02d1a95dca1184132b77e25cc2d8c (patch) | |
tree | b3e2ccceb83bc30e31b61573e4c232450e8c72c7 /src/jalv_internal.h | |
parent | b49b6f8c22d6c66e630fbbc5bde4838df5f6af41 (diff) | |
download | jalv-d976b0df20c02d1a95dca1184132b77e25cc2d8c.tar.gz jalv-d976b0df20c02d1a95dca1184132b77e25cc2d8c.tar.bz2 jalv-d976b0df20c02d1a95dca1184132b77e25cc2d8c.zip |
Move control printing function to shared internal header
Diffstat (limited to 'src/jalv_internal.h')
-rw-r--r-- | src/jalv_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jalv_internal.h b/src/jalv_internal.h index c8b45ab..b193c22 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -465,6 +465,13 @@ atom_to_turtle(LV2_URID_Unmap* unmap, const SerdNode* predicate, const LV2_Atom* atom); +static inline void +jalv_print_control(Jalv* jalv, const struct Port* port, float value) +{ + const LilvNode* sym = lilv_port_get_symbol(jalv->plugin, port->lilv_port); + printf("%s = %f\n", lilv_node_as_string(sym), value); +} + static inline char* jalv_strdup(const char* str) { |