clap

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

commit 190771aee220777e6dc997baaf7b5ca28365ca9d
parent e11e63b2090f25f5cab19278437003a90faf4377
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon,  8 Jan 2024 13:01:33 +0100

Remove the cv ext

Diffstat:
MChangeLog.md | 1+
MREADME.md | 1-
Minclude/clap/all.h | 1-
Minclude/clap/ext/audio-ports.h | 1-
Dinclude/clap/ext/draft/cv.h | 44--------------------------------------------
5 files changed, 1 insertion(+), 47 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md @@ -18,6 +18,7 @@ Note: we kept the last draft extension ID in order to not break plugins already * `CLAP_EXT_CHECK_FOR_UPDATE` wasn't used and it's design needed more thought. * `CLAP_EXT_MIDI_MAPPING` wasn't used. MIDI2 seems to do it better, and the interface wasn't satisfying. +* `CLAP_EXT_CV` the interface wasn't satisfying. ## Stabilize factory * `CLAP_PRESET_DISCOVERY_FACTORY_ID` diff --git a/README.md b/README.md @@ -90,7 +90,6 @@ and use to get a basic plugin experience: - [audio-ports](include/clap/ext/audio-ports.h), define the audio ports - [surround](include/clap/ext/surround.h), inspect surround channel mapping - [ambisonic](include/clap/ext/draft/ambisonic.h), inspect ambisonic channel mapping (draft) - - [cv](include/clap/ext/draft/cv.h), inspect CV channel mapping (draft) - [configurable-audio-ports](include/clap/ext/configurable-audio-ports.h), request the plugin to apply a given configuration - [audio-ports-config](include/clap/ext/audio-ports-config.h), simple list of pre-defined audio ports configurations - [audio-ports-activation](include/clap/ext/audio-ports-activation.h), activate and deactivate a given audio port diff --git a/include/clap/all.h b/include/clap/all.h @@ -6,7 +6,6 @@ #include "factory/draft/plugin-state-converter.h" #include "ext/draft/ambisonic.h" -#include "ext/draft/cv.h" #include "ext/draft/extensible-audio-ports.h" #include "ext/draft/resource-directory.h" #include "ext/draft/transport-control.h" diff --git a/include/clap/ext/audio-ports.h b/include/clap/ext/audio-ports.h @@ -54,7 +54,6 @@ typedef struct clap_audio_port_info { // - CLAP_PORT_STEREO // - CLAP_PORT_SURROUND (defined in the surround extension) // - CLAP_PORT_AMBISONIC (defined in the ambisonic extension) - // - CLAP_PORT_CV (defined in the cv extension) // // An extension can provide its own port type and way to inspect the channels. const char *port_type; diff --git a/include/clap/ext/draft/cv.h b/include/clap/ext/draft/cv.h @@ -1,44 +0,0 @@ -#pragma once - -#include "../../plugin.h" - -// This extension can be used to specify the cv channel type used by the plugin. -// Work in progress, suggestions are welcome - -static CLAP_CONSTEXPR const char CLAP_EXT_CV[] = "clap.cv.draft/0"; -static CLAP_CONSTEXPR const char CLAP_PORT_CV[] = "cv"; - -#ifdef __cplusplus -extern "C" { -#endif - -enum { - // TODO: standardize values? - CLAP_CV_VALUE = 0, - CLAP_CV_GATE = 1, - CLAP_CV_PITCH = 2, -}; - -// TODO: maybe we want a channel_info instead, where we could have more details about the supported -// ranges? - -typedef struct clap_plugin_cv { - // Returns true on success. - // [main-thread] - bool(CLAP_ABI *get_channel_type)(const clap_plugin_t *plugin, - bool is_input, - uint32_t port_index, - uint32_t channel_index, - uint32_t *channel_type); -} clap_plugin_cv_t; - -typedef struct clap_host_cv { - // Informs the host that the channels type have changed. - // The channels type can only change when the plugin is de-activated. - // [main-thread,!active] - void(CLAP_ABI *changed)(const clap_host_t *host); -} clap_host_cv_t; - -#ifdef __cplusplus -} -#endif