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
1,888 downloads per month
Used in ladspa_noisecoring
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 morePluginDescriptor
s 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