Phase 25: improve LADSPA discovery, parameter editing and plugin lifecycle
This commit is contained in:
parent
2fd7724065
commit
7bff7b535d
18 changed files with 591 additions and 42 deletions
|
|
@ -21,6 +21,28 @@ typedef struct {
|
|||
unsigned int tempo, point_count; /* milli-BPM, 20000..300000 */
|
||||
xtc_plugin_point points[XTC_PLUGIN_POINTS];
|
||||
} xtc_plugin_spec;
|
||||
/* Copied discovery metadata, never descriptor/module pointers. LADSPA provides
|
||||
* no standardized units; unit is empty. Flags describe input control hints. */
|
||||
#define XTC_PLUGIN_INTEGER 1U
|
||||
#define XTC_PLUGIN_TOGGLED 2U
|
||||
#define XTC_PLUGIN_LOGARITHMIC 4U
|
||||
#define XTC_PLUGIN_SAMPLE_RATE 8U
|
||||
#define XTC_PLUGIN_BOUNDED_BELOW 16U
|
||||
#define XTC_PLUGIN_BOUNDED_ABOVE 32U
|
||||
typedef struct {
|
||||
char name[128], maker[128], copyright[128];
|
||||
unsigned int hard_realtime;
|
||||
xtc_parameter_info parameters[XTC_PLUGIN_CONTROLS];
|
||||
unsigned int flags[XTC_PLUGIN_CONTROLS];
|
||||
} xtc_plugin_details;
|
||||
/* Control-thread identity/layout verification and copied human-readable hints. */
|
||||
xtc_result xtc_plugin_describe(const xtc_plugin_spec *spec, double rate, xtc_plugin_details *out);
|
||||
/* Reset static values to defaults, removing automation for the chosen port.
|
||||
* UINT32_MAX resets all controls. Failure leaves spec unchanged. */
|
||||
xtc_result xtc_plugin_reset(xtc_plugin_spec *spec, double rate, unsigned int port);
|
||||
/* Replace identity/controls at a stable node ID; only identical audio layouts
|
||||
* are accepted, preserving all wires. Metadata-only; compile before adoption. */
|
||||
xtc_result xtc_graph_replace_plugin(xtc_graph *graph, size_t id, const xtc_plugin_spec *spec);
|
||||
typedef struct xtc_plugin xtc_plugin;
|
||||
/* Control thread only. Probe explicitly enumerates a file by descriptor index;
|
||||
* NOT_FOUND means end, UNSUPPORTED means descriptor/layout unsupported. Loading
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue