commit a1be55e20c81bd6e92e67f7dcc2a0d4ad5d6cd0a
parent de293f8b130b84fa8f3f571a2ba93570eb102aa0
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Mon, 6 Mar 2023 16:01:25 +0100
No need for the config id here
Diffstat:
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/include/clap/ext/draft/ambisonic.h b/include/clap/ext/draft/ambisonic.h
@@ -4,7 +4,7 @@
// This extension can be used to specify the channel mapping used by the plugin.
-static CLAP_CONSTEXPR const char CLAP_EXT_AMBISONIC[] = "clap.ambisonic.draft/1";
+static CLAP_CONSTEXPR const char CLAP_EXT_AMBISONIC[] = "clap.ambisonic.draft/2";
static CLAP_CONSTEXPR const char CLAP_PORT_AMBISONIC[] = "ambisonic";
@@ -40,7 +40,6 @@ typedef struct clap_plugin_ambisonic {
// If config_id is CLAP_INVALID_ID, then this function queries the current port info.
// [main-thread]
bool(CLAP_ABI *get_info)(const clap_plugin_t *plugin,
- clap_id config_id,
bool is_input,
uint32_t port_index,
clap_ambisonic_info_t *info);
diff --git a/include/clap/ext/draft/surround.h b/include/clap/ext/draft/surround.h
@@ -24,7 +24,7 @@
// 3. host calls clap_plugin_surround->get_channel_map()
// 4. host activates the plugin and can start processing audio
-static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/2";
+static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/3";
static CLAP_CONSTEXPR const char CLAP_PORT_SURROUND[] = "surround";
@@ -61,7 +61,6 @@ typedef struct clap_plugin_surround {
// If config_id is CLAP_INVALID_ID, then this function queries the current port info.
// [main-thread]
uint32_t(CLAP_ABI *get_channel_map)(const clap_plugin_t *plugin,
- clap_id config_id,
bool is_input,
uint32_t port_index,
uint8_t *channel_map,
@@ -77,13 +76,6 @@ typedef struct clap_host_surround {
// The channel map can only change when the plugin is de-activated.
// [main-thread]
void(CLAP_ABI *changed)(const clap_host_t *host);
-
- // Ask the host what is the preferred/project surround channel map.
- // [main-thread]
- void(CLAP_ABI *get_preferred_channel_map)(const clap_host_t *host,
- uint8_t *channel_map,
- uint32_t channel_map_capacity,
- uint32_t *channel_count);
} clap_host_surround_t;
#ifdef __cplusplus