aboutsummaryrefslogtreecommitdiffstats
path: root/src/port.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 11:56:18 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 18:59:59 -0500
commita584a1f33002f9fefda29842f0ec5f58316252af (patch)
tree7fa5466b3ea0657986e7c8caeb629af92e553cf1 /src/port.h
parent7ab8a8f8771aed943e1e154c7a7c7040f7e7be3b (diff)
downloadjalv-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.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/port.h b/src/port.h
index 5b3e0c9..7ca80b1 100644
--- a/src/port.h
+++ b/src/port.h
@@ -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