commit 32f19b54d3e9fb21c7d6758dff258ea1f7e04292 parent 0e6fe5caf89ed6475f9225fc922691830ac8ff1b Author: Alexandre Bique <bique.alexandre@gmail.com> Date: Mon, 4 Apr 2022 16:08:54 +0200 Add more info to audio_ports_config as suggested by baconpaul Diffstat:
M | include/clap/ext/audio-ports-config.h | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/include/clap/ext/audio-ports-config.h b/include/clap/ext/audio-ports-config.h @@ -32,13 +32,18 @@ typedef struct clap_audio_ports_config { clap_id id; char name[CLAP_NAME_SIZE]; + uint32_t input_port_count; + uint32_t output_port_count; + // main input info - uint32_t input_channel_count; - const char *input_port_type; + bool has_main_input_channel; + uint32_t main_input_channel_count; + const char *main_input_port_type; // main output info - uint32_t output_channel_count; - const char *output_port_type; + bool has_main_output_channel; + uint32_t main_output_channel_count; + const char *main_output_port_type; } clap_audio_ports_config_t; // The audio ports config scan has to be done while the plugin is deactivated.