Added VST SDK support.

This commit is contained in:
Johannes Findeisen 2026-11-06 18:13:49 +01:00
commit 8e09f58944
25 changed files with 850 additions and 23 deletions

View file

@ -84,7 +84,7 @@ typedef struct xtc_plugin xtc_plugin;
/* Serialized control/main thread: service CLAP callback requests. */
void xtc_plugin_idle(void);
/* Serialized main/control thread only (also create/destroy/idle). Probe explicitly
* enumerates a Linux binary file by descriptor index;
* enumerates a Linux binary or conventional .vst3 bundle by descriptor index;
* NOT_FOUND means end, UNSUPPORTED means descriptor/layout unsupported. Loading
* trusted libraries can execute arbitrary constructors. Never probe in audio. */
xtc_result xtc_plugin_probe_format(xtc_plugin_format format, const char *path, unsigned int index, double rate, xtc_plugin_spec *out);
@ -106,7 +106,8 @@ void xtc_plugin_destroy(xtc_plugin *plugin); /* control, after quiescence */
* must obey realtime rules. No MIDI; max one mono input and one mono output.
* Transport reset retains LADSPA delay history (no realtime reset contract). */
/* Instruments: sorted bounded MIDI, mono output, single audio owner. */
/* Absolute sample position supports instrument parameter automation and seek. */
/* Absolute sample position supports instrument parameter automation and seek.
* VST3 receives this clock plus the prepared spec tempo in its process context. */
xtc_result xtc_plugin_process_midi_at(xtc_plugin *plugin, const xtc_midi_event *events, size_t count, float *output, size_t frames, uint64_t position);
/* Control-thread preset files use a versioned single-instrument project container.
* Load is transactional, validates metadata and never loads executable modules. */