clap

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

commit cf2bdb1380d97dcf6d69ba603c444b1981efcd3d
parent 9fa4b563a5ff7b6c3d8017951adb816d5847ddb0
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri,  6 May 2022 12:56:29 +0200

Add flags to voice-info to know if the plugin will support overlapping notes

Diffstat:
Minclude/clap/ext/draft/voice-info.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/clap/ext/draft/voice-info.h b/include/clap/ext/draft/voice-info.h @@ -15,6 +15,12 @@ static const char CLAP_EXT_VOICE_INFO[] = "clap.voice-info.draft/0"; extern "C" { #endif +enum { + // Allows the host to send overlapping NOTE_ON events. + // The plugin will then rely upon the note_id to distinguish between them. + CLAP_VOICE_INFO_SUPPORTS_OVERLAPPING_NOTES = 1 << 0, +}; + typedef struct clap_voice_info { // voice_count is the current number of voices that the patch can use // voice_capacity is the number of voices allocated voices @@ -29,6 +35,8 @@ typedef struct clap_voice_info { // can decide to only use global modulation mapping. uint32_t voice_count; uint32_t voice_capacity; + + uint64_t flags; } clap_voice_info_t; typedef struct clap_plugin_voice_info {