clap

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

commit f3742e1fcb90410255c23df7ed5f7617d5ab8f45
parent cafb058fd64f6359d3ed88e0dd7ecc4590740371
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Tue, 21 Dec 2021 18:43:27 +0100

Rework the surround extension

Diffstat:
Minclude/clap/ext/draft/surround.h | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/include/clap/ext/draft/surround.h b/include/clap/ext/draft/surround.h @@ -2,7 +2,7 @@ #include "../../plugin.h" -static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/0"; +static CLAP_CONSTEXPR const char CLAP_EXT_SURROUND[] = "clap.surround.draft/1"; #ifdef __cplusplus extern "C" { @@ -32,11 +32,14 @@ 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 // [main-thread] - uint32_t (*get_channel_type)(const clap_plugin_t *plugin, - bool is_input, - uint32_t port_index, - uint32_t channel_index); + uint32_t (*get_channel_map)(const clap_plugin_t *plugin, + bool is_input, + uint32_t port_index, + uint8_t *channel_map, + uint32_t channel_map_capacity); } clap_plugin_surround_t; typedef struct clap_host_surround { @@ -49,4 +52,4 @@ typedef struct clap_host_surround { #ifdef __cplusplus } -#endif -\ No newline at end of file +#endif