commit 582a30ff34681ede47a8890d9f5fff01188e4a87
parent 919b8198533df56f3a1663107ecd36a7d57eb8a6
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Sun, 30 May 2021 13:32:03 +0200
format
Diffstat:
1 file changed, 16 insertions(+), 19 deletions(-)
diff --git a/include/clap/ext/midi-mappings.h b/include/clap/ext/midi-mappings.h
@@ -9,33 +9,30 @@ extern "C" {
#define CLAP_EXT_MIDI_MAPPINGS "clap/midi-mappings"
enum {
- CLAP_MIDI_MAPPING_CC7,
- CLAP_MIDI_MAPPING_CC14,
- CLAP_MIDI_MAPPING_RPN,
- CLAP_MIDI_MAPPING_NRPN,
+ CLAP_MIDI_MAPPING_CC7,
+ CLAP_MIDI_MAPPING_CC14,
+ CLAP_MIDI_MAPPING_RPN,
+ CLAP_MIDI_MAPPING_NRPN,
};
typedef int32_t clap_midi_mapping_type;
-typedef struct clap_midi_mapping
-{
- int32_t channel;
- int32_t number;
- clap_id param_id;
+typedef struct clap_midi_mapping {
+ int32_t channel;
+ int32_t number;
+ clap_id param_id;
} clap_midi_mapping;
-typedef struct clap_plugin_midi_mappings
-{
- // [main-thread]
- uint32_t (*count)(const clap_plugin *plugin);
+typedef struct clap_plugin_midi_mappings {
+ // [main-thread]
+ uint32_t (*count)(const clap_plugin *plugin);
- // [main-thread]
- bool (*get)(const clap_plugin *plugin, uint32_t index, clap_midi_mapping *mapping);
+ // [main-thread]
+ bool (*get)(const clap_plugin *plugin, uint32_t index, clap_midi_mapping *mapping);
} clap_plugin_midi_mappings;
-typedef struct clap_host_midi_mappings
-{
- // [main-thread]
- void (*changed)(const clap_host *host);
+typedef struct clap_host_midi_mappings {
+ // [main-thread]
+ void (*changed)(const clap_host *host);
} clap_host_midi_mappings;
#ifdef __cplusplus