Skip to main content

Crate sim_lib_plugin_lv2

Crate sim_lib_plugin_lv2 

Source
Expand description

LV2-shaped plugin adapters for SIM audio graph processors.

The default model feature is a pure-Rust, in-process model of the LV2 plugin format. The crate carries no -sys or FFI dependency: Lv2HostProcessor runs SIM audio-graph processors shaped to the LV2 descriptor, and export_*_as_lv2 produces descriptors. On Linux, the optional lv2-host feature exposes a provider trait and fixture host provider for capability-gated fallback loading.

use sim_lib_plugin_lv2::lv2_gain_lv2_descriptor;

let lv2 = lv2_gain_lv2_descriptor().unwrap();
assert_eq!(lv2.ports.len(), 3);

let descriptor = lv2.to_plugin_descriptor().unwrap();
assert_eq!(descriptor.id.format.as_str(), "lv2");

Structs§

Lv2ExportedProcessor
A SIM graph Processor presented as an LV2-shaped PluginInstance.
Lv2HostProcessor
Graph Processor that drives an LV2-shaped plugin instance.
Lv2PluginDescriptor
An LV2-shaped plugin description that lowers to a core PluginDescriptor.
Lv2Port
One declared port of an Lv2PluginDescriptor.
Lv2StatePatch
A portable snapshot of one LV2 plugin’s state, keyed by its URI.

Enums§

Lv2PortKind
The LV2 port class of an Lv2Port, mapped onto a graph PortMedia.

Functions§

export_gain_as_lv2
Exports the built-in gain processor as an LV2-shaped plugin instance.
export_processor_as_lv2
Exports processor as an LV2-shaped plugin instance under descriptor.
install_lv2_plugin_lib
Installs the plugin-lv2 surface pack into cx, idempotently.
lv2_gain_descriptor
Builds the built-in gain plugin’s format-neutral PluginDescriptor.
lv2_gain_lv2_descriptor
Builds the built-in stereo gain plugin’s LV2 description.
lv2_plugin_symbols
Returns the qualified Symbol for each plugin-lv2 runtime export.