commit 25204cb85fca04cf2f20601a5a1eb7eb22ed7f79 parent a1be55e20c81bd6e92e67f7dcc2a0d4ad5d6cd0a Author: Alexandre Bique <bique.alexandre@gmail.com> Date: Mon, 6 Mar 2023 16:44:09 +0100 Add a way to relax the port configuration Diffstat:
M | include/clap/ext/draft/configurable-audio-ports.h | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/clap/ext/draft/configurable-audio-ports.h b/include/clap/ext/draft/configurable-audio-ports.h @@ -15,6 +15,10 @@ typedef struct clap_audio_port_configuration_request { bool is_input; uint32_t channel_count; + // If true and if the plugin can't apply the requested port configuration, + // then it is allowed to pick the closest possible port configuration. + bool is_best_effort; + // cast port_details according to port_type: // - CLAP_PORT_MONO: (discard) // - CLAP_PORT_STEREO: (discard)