clap

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

commit d31083ea4e5a803c43f0d39e30fe94fdefb3f163
parent f12658692d368da730b2d48f01bb642ad8e8dad0
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 13 Jan 2023 09:39:04 +0100

Update ambisonic and surround

Diffstat:
Minclude/clap/ext/draft/ambisonic.h | 6+++++-
Minclude/clap/ext/draft/surround.h | 8++++++--
2 files changed, 11 insertions(+), 3 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/0"; +static CLAP_CONSTEXPR const char CLAP_EXT_AMBISONIC[] = "clap.ambisonic.draft/1"; static CLAP_CONSTEXPR const char CLAP_PORT_AMBISONIC[] = "ambisonic"; @@ -35,8 +35,12 @@ typedef struct clap_ambisonic_info { typedef struct clap_plugin_ambisonic { // Returns true on success + // + // config_id: the configuration id, see clap_plugin_audio_ports_config. + // 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/1"; +static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/2"; static CLAP_CONSTEXPR const char CLAP_PORT_SURROUND[] = "surround"; @@ -55,9 +55,13 @@ enum { typedef struct clap_plugin_surround { // Stores into the channel_map array, the surround identifer of each channels. - // Returns the number of elements stored in channel_map + // Returns the number of elements stored in channel_map. + // + // config_id: the configuration id, see clap_plugin_audio_ports_config. + // 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,