Skip to main content

Crate sim_lib_plugin_clap

Crate sim_lib_plugin_clap 

Source
Expand description

Modeled CLAP-shaped plugin adapters for SIM audio graph processors.

The default model feature is a pure-Rust, in-process model of the CLAP plugin format. The crate carries no -sys or FFI dependency: ClapHostProcessor runs SIM audio-graph processors shaped to the CLAP descriptor, and export_*_as_clap produces descriptors, not native binaries. The optional clap-host feature exposes a provider trait and fixture host provider for capability-gated fallback loading without adding an SDK binding.

use sim_lib_plugin_clap::clap_gain_descriptor;

let descriptor = clap_gain_descriptor().unwrap();
assert_eq!(descriptor.id.format.as_str(), "clap");
assert_eq!(descriptor.parameter(0).unwrap().stable_id.as_str(), "gain");

Structs§

ClapEventBuffer
An ordered buffer of ClapEvents for a single processing block.
ClapExportedProcessor
A native SIM Processor presented to the host as a CLAP plugin instance.
ClapHostProcessor
Audio-graph Processor that hosts a CLAP plugin instance.
ClapParamMap
A translation table from CLAP parameter ids to SIM parameter ids.
ClapPluginLib
Host-registered lib exporting the CLAP adapter cards, built on the shared SurfacePackLib substrate.

Enums§

ClapEvent
A CLAP input event, mirroring the CLAP event union SIM accepts from a host.

Functions§

clap_audio_effect_descriptor
Builds a CLAP-format audio-effect PluginDescriptor.
clap_gain_descriptor
Builds the CLAP gain fixture descriptor.
clap_plugin_symbols
Returns the qualified Symbols of the cards exported by the CLAP plugin lib (the event, parameter-map, host/export processor, and fixture cards).
clap_synth_descriptor
Builds the CLAP subtractive-synth fixture descriptor.
export_gain_as_clap
Exports a Gain DSP node as a CLAP gain plugin at the given gain value.
export_processor_as_clap
Exports any SIM Processor as a ClapExportedProcessor.
install_clap_plugin_lib
Installs ClapPluginLib into cx, idempotently.