clap

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

commit 2fbf6b9d0c653eb9a8e45e7d75a7836b49c09fbb
parent 97bec9dd6d15b3c351a80877f2ebe11b6e8a4b67
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Sat, 29 Nov 2014 16:05:00 +0100

remove custom data event

Diffstat:
Minclude/clap/clap.h | 23+++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -126,10 +126,6 @@ enum clap_event_type CLAP_EVENT_TEMPO_CHANGED = 15, // attribute tempo CLAP_EVENT_JUMP = 16, // attribute jump - - CLAP_EVENT_CUSTOM_DATA = 17, // not really used in the interface, but - // convinient to pass custom data through - // the interface (in case of bridge, ...) }; struct clap_event_note @@ -143,20 +139,26 @@ struct clap_event_note struct clap_event_param { + /* key/voice index */ bool is_global; // is this event global? uint8_t key; // if !is_global, target key - uint32_t index; + + /* parameter */ + uint32_t index; // parameter index union clap_param_value value; float increment; // for param ramp - char display_text[CLAP_DISPLAY_SIZE]; // use this for display if not NULL. + char display_text[CLAP_DISPLAY_SIZE]; // use this for display. bool is_recordable; // used to tell the host if this event // can be recorded }; struct clap_event_control { + /* voice/key index */ bool is_global; // is this event global? uint8_t key; // if !is_global, target key + + /* control */ uint32_t index; float value; // 0 .. 1.0f }; @@ -168,8 +170,11 @@ struct clap_event_preset struct clap_event_midi { + /* voice/key index */ bool is_global; // is this event global? uint8_t key; // if !is_global, target key + + /* midi event */ const uint8_t *buffer; uint32_t size; }; @@ -190,12 +195,6 @@ struct clap_event_jump uint32_t song_time; // song time in samples }; -struct clap_event_custom_data -{ - uint32_t size; - void *data; -}; - struct clap_event { struct clap_event *next; // linked list, NULL on end