15 releases

Uses old Rust 2015

0.3.4 Mar 10, 2018
0.3.3 Mar 30, 2017
0.3.2 May 18, 2016
0.3.1 Mar 24, 2016
0.1.2 Feb 14, 2015

#983 in Audio

Download history 204/week @ 2023-12-18 174/week @ 2023-12-25 206/week @ 2024-01-01 236/week @ 2024-01-08 283/week @ 2024-01-15 199/week @ 2024-01-22 337/week @ 2024-01-29 220/week @ 2024-02-05 205/week @ 2024-02-12 211/week @ 2024-02-19 227/week @ 2024-02-26 440/week @ 2024-03-04 309/week @ 2024-03-11 266/week @ 2024-03-18 256/week @ 2024-03-25 674/week @ 2024-04-01

1,535 downloads per month
Used in ladspa_noisecoring

Unlicense

30KB
442 lines

LADSPA.rs

The ladspa crate provides an interface for writing LADSPA plugins safely in Rust.

Usage

See the documentation here. Two example plugins, for ring modulation and delay are provided in the examples folder.


lib.rs:

  • The ladspa crate provides an interface for writing LADSPA
  • plugins safely in Rust.
  • ##Creating the project
  • Run cargo new my_ladspa_plugin to generate a Cargo project for your plugin, then add
  • the following to the generated Cargo.toml:
  • [dependencies]
  • ladspa = "*"
  • [lib]
  • name = "my_ladspa_plugin"
  • crate-type = ["dylib"]
  • This will pull in the correct dependency and ensure that the library generated when you build
  • your plugin is compatible with LADSPA hosts.
  • Writing the code

  • You'll want to implement
  • get_ladspa_descriptor in your src/lib.rs. This function is expected to return 1 or more
  • PluginDescriptors describing the plugins exposed by your library. See the documentation
  • for get_ladspa_descriptor and the examples
  • on Github for more
  • information.
  • Testing it out

  • There is a list of host software supporting LADSPA on the
  • LADSPA home page. In order for a host to find your plugin, you will
  • either need to copy the *.so file from target/ after building to /usr/lib/ladspa/ (on most
  • systems, it may be different on your system) or set the enviornment variable LADSPA_PATH
  • to equal the directory where you store your plugins.

Dependencies

~230KB