Initial commit
This commit is contained in:
commit
56f7cd1875
105 changed files with 22109 additions and 0 deletions
33
tests/clap/ext/draft/extensible-audio-ports.h
Normal file
33
tests/clap/ext/draft/extensible-audio-ports.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include "../audio-ports.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// This extension lets the host add and remove audio ports to the plugin.
|
||||
static CLAP_CONSTEXPR const char CLAP_EXT_EXTENSIBLE_AUDIO_PORTS[] =
|
||||
"clap.extensible-audio-ports/1";
|
||||
|
||||
typedef struct clap_plugin_extensible_audio_ports {
|
||||
// Asks the plugin to add a new port (at the end of the list), with the following settings.
|
||||
// port_type: see clap_audio_port_info.port_type for interpretation.
|
||||
// port_details: see clap_audio_port_configuration_request.port_details for interpretation.
|
||||
// Returns true on success.
|
||||
// [main-thread && !is_active]
|
||||
bool(CLAP_ABI *add_port)(const clap_plugin_t *plugin,
|
||||
bool is_input,
|
||||
uint32_t channel_count,
|
||||
const char *port_type,
|
||||
const void *port_details);
|
||||
|
||||
// Asks the plugin to remove a port.
|
||||
// Returns true on success.
|
||||
// [main-thread && !is_active]
|
||||
bool(CLAP_ABI *remove_port)(const clap_plugin_t *plugin, bool is_input, uint32_t index);
|
||||
} clap_plugin_extensible_audio_ports_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue