clap

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

commit 781f0643aed240e07b0fe1297a995291a3b000ad
parent 1d9bbb895557eaf8759b54bcd87745f480a909ea
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Sun, 22 May 2022 10:28:28 +0200

Temp commit, start defining the plugin features in a dedicated file

Diffstat:
Minclude/clap/clap.h | 1+
Ainclude/clap/plugin-features.h | 18++++++++++++++++++
Minclude/clap/plugin.h | 1+
3 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -28,6 +28,7 @@ #include "entry.h" #include "plugin-factory.h" #include "plugin-invalidation.h" +#include "plugin-features.h" #include "plugin.h" #include "host.h" diff --git a/include/clap/plugin-features.h b/include/clap/plugin-features.h @@ -0,0 +1,18 @@ +#pragma once + +///////////////////// +// Plugin category // +///////////////////// + +// Add this feature if your plugin can process note events and then produce audio +static const char *CLAP_PLUGIN_FEATURE_INSTRUMENT = "instrument"; + +// Add this feature if your plugin is an audio effect +static const char *CLAP_PLUGIN_FEATURE_AUDIO_EFFECT = "audio effect"; + +// Add this feature if your plugin is a note effect or a note generator/sequencer +static const char *CLAP_PLUGIN_FEATURE_NOTE_EFFECT = "note effect"; + +// Add this feature if your plugin is an analyzer +static const char *CLAP_PLUGIN_FEATURE_ANALYZER = "analyzer"; + diff --git a/include/clap/plugin.h b/include/clap/plugin.h @@ -25,6 +25,7 @@ typedef struct clap_plugin_descriptor { // // The array of pointers must be null terminated. // + // For some standard features see plugin-features.h // Some pre-defined keywords: // - "instrument", "audio_effect", "note_effect", "analyzer" // - "mono", "stereo", "surround", "ambisonic"