clap

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

commit d698690be4f4a9b41a81a18092455ecd220b81cc
parent 84a097d1d3f5e121341484d695397d8e610a23d8
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon, 27 Dec 2021 13:14:13 +0100

Add dialect info to note port info

Diffstat:
Minclude/clap/ext/note-ports.h | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/include/clap/ext/note-ports.h b/include/clap/ext/note-ports.h @@ -19,9 +19,17 @@ extern "C" { #pragma pack(push, CLAP_ALIGN) +enum clap_note_dialect { + CLAP_NOTE_DIALECT_CLAP = 1 << 0, + CLAP_NOTE_DIALECT_MIDI = 1 << 1, + CLAP_NOTE_DIALECT_MIDI2 = 1 << 2, +}; + typedef struct clap_note_port_info { - alignas(4) clap_id id; // stable identifier - alignas(1) char name[CLAP_NAME_SIZE]; // displayable name, i18n? + alignas(4) clap_id id; // stable identifier + alignas(4) uint32_t clap_supported_dialects; // see clap_note_dialect + alignas(4) uint32_t clap_preferred_dialect; // clap_note_dialect + alignas(1) char name[CLAP_NAME_SIZE]; // displayable name, i18n? } clap_note_port_info_t; // The audio ports scan has to be done while the plugin is deactivated.