aboutsummaryrefslogtreecommitdiffstats
path: root/src/comm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/comm.h')
-rw-r--r--src/comm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/comm.h b/src/comm.h
index e4579eb..11d7dc3 100644
--- a/src/comm.h
+++ b/src/comm.h
@@ -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