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

#1002 in Audio

Download history 306/week @ 2024-03-13 273/week @ 2024-03-20 270/week @ 2024-03-27 458/week @ 2024-04-03 360/week @ 2024-04-10 259/week @ 2024-04-17 244/week @ 2024-04-24 723/week @ 2024-05-01 245/week @ 2024-05-08 280/week @ 2024-05-15 248/week @ 2024-05-22 672/week @ 2024-05-29 645/week @ 2024-06-05 388/week @ 2024-06-12 332/week @ 2024-06-19 326/week @ 2024-06-26

1,888 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

~235KB