clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 483e4c7b1c9e1f7893bdb22ff84de20d26af08d0
parent f243c3afdd2571f4712aeb8b3c2b308de78b1ee0
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Mon,  3 Jan 2022 12:46:00 +0100

Add size to clap_event_header


Diffstat:
Minclude/clap/events.h | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/include/clap/events.h b/include/clap/events.h @@ -13,12 +13,13 @@ extern "C" { #pragma pack(push, CLAP_ALIGN) // event header -// must be the first field of the event +// must be the first attribute of the event typedef struct clap_event_header { - alignas(4) uint32_t time; - alignas(2) uint16_t space_id; - alignas(2) uint16_t event_id; - alignas(2) uint16_t flags; // see clap_event_flags + alignas(4) uint32_t size; // event size including this header, eg: sizeof (clap_event_note) + alignas(4) uint32_t time; // time at which the event happens + alignas(2) uint16_t space_id; // event space, see clap_host_event_registry + alignas(2) uint16_t type; // event type + alignas(2) uint16_t flags; // see clap_event_flags } clap_event_header_t; // The clap core event space