diff options
Diffstat (limited to 'src/comm.h')
-rw-r--r-- | src/comm.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -22,6 +22,7 @@ typedef enum { NO_MESSAGE, ///< Sentinel type for uninitialized messages CONTROL_PORT_CHANGE, ///< Value change for a control port (float) EVENT_TRANSFER, ///< Event transfer for a sequence port (atom) + LATENCY_CHANGE, ///< Change to plugin latency } JalvMessageType; /** @@ -59,6 +60,16 @@ typedef struct { } JalvEventTransfer; /** + The payload of a LATENCY_CHANGE message. + + This message has a fixed sized, and is described in its entirety by this + struct. +*/ +typedef struct { + float value; ///< Latency in frames at the current sample rate +} JalvLatencyChange; + +/** Write a message in two parts to a ring. This is used to conveniently write a message with a fixed-size header and |