diff options
author | David Robillard <d@drobilla.net> | 2024-11-15 11:56:18 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 18:59:59 -0500 |
commit | a584a1f33002f9fefda29842f0ec5f58316252af (patch) | |
tree | 7fa5466b3ea0657986e7c8caeb629af92e553cf1 /src/port.h | |
parent | 7ab8a8f8771aed943e1e154c7a7c7040f7e7be3b (diff) | |
download | jalv-a584a1f33002f9fefda29842f0ec5f58316252af.tar.gz jalv-a584a1f33002f9fefda29842f0ec5f58316252af.tar.bz2 jalv-a584a1f33002f9fefda29842f0ec5f58316252af.zip |
Avoid querying the lilv model in the process callback
Diffstat (limited to 'src/port.h')
-rw-r--r-- | src/port.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -19,15 +19,16 @@ enum PortFlow { FLOW_UNKNOWN, FLOW_INPUT, FLOW_OUTPUT }; enum PortType { TYPE_UNKNOWN, TYPE_CONTROL, TYPE_AUDIO, TYPE_EVENT, TYPE_CV }; struct Port { - const LilvPort* lilv_port; ///< LV2 port - enum PortType type; ///< Data type - enum PortFlow flow; ///< Data flow direction - void* sys_port; ///< For audio/MIDI ports, otherwise NULL - LV2_Evbuf* evbuf; ///< For MIDI ports, otherwise NULL - void* widget; ///< Control widget, if applicable - size_t buf_size; ///< Custom buffer size, or 0 - uint32_t index; ///< Port index - float control; ///< For control ports, otherwise 0.0f + const LilvPort* lilv_port; ///< LV2 port + enum PortType type; ///< Data type + enum PortFlow flow; ///< Data flow direction + void* sys_port; ///< For audio/MIDI ports, otherwise NULL + LV2_Evbuf* evbuf; ///< For MIDI ports, otherwise NULL + void* widget; ///< Control widget, if applicable + size_t buf_size; ///< Custom buffer size, or 0 + uint32_t index; ///< Port index + float control; ///< For control ports, otherwise 0.0f + bool reports_latency; ///< For control port outputs }; JALV_END_DECLS |