commit 6d4c3acc3730491e3ef203638a07544b42679355
parent 93a5698e56744bd12374bef2d71e422d626b3a70
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Mon, 6 Mar 2023 18:38:41 +0100
Fixes #266
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/clap/events.h b/include/clap/events.h
@@ -260,7 +260,7 @@ typedef struct clap_event_midi2 {
uint32_t data[4];
} clap_event_midi2_t;
-// Input event list, events must be sorted by time.
+// Input event list. The host will deliver these sorted in sample order.
typedef struct clap_input_events {
void *ctx; // reserved pointer for the list
@@ -271,7 +271,7 @@ typedef struct clap_input_events {
const clap_event_header_t *(CLAP_ABI *get)(const struct clap_input_events *list, uint32_t index);
} clap_input_events_t;
-// Output event list, events must be sorted by time.
+// Output event list. The plugin must insert events in sample sorted order when inserting events
typedef struct clap_output_events {
void *ctx; // reserved pointer for the list
diff --git a/include/clap/process.h b/include/clap/process.h
@@ -53,11 +53,11 @@ typedef struct clap_process {
uint32_t audio_inputs_count;
uint32_t audio_outputs_count;
- // Input and output events.
- //
- // Events must be sorted by time.
// The input event list can't be modified.
+ // Input read-only event list. The host will deliver these sorted in sample order.
const clap_input_events_t *in_events;
+
+ // Output event list. The plugin must insert events in sample sorted order when inserting events
const clap_output_events_t *out_events;
} clap_process_t;