#pulse-audio #binding

libpulse-simple-binding

A Rust language binding for the PulseAudio libpulse-simple library

42 stable releases

2.28.1 Jul 18, 2023
2.27.1 Jan 9, 2023
2.25.0 Jan 13, 2022
2.24.1 Aug 29, 2021
1.0.2 Feb 9, 2018

#92 in Audio

Download history 11938/week @ 2024-06-19 11205/week @ 2024-06-26 12962/week @ 2024-07-03 12982/week @ 2024-07-10 10848/week @ 2024-07-17 13651/week @ 2024-07-24 11548/week @ 2024-07-31 11607/week @ 2024-08-07 7939/week @ 2024-08-14 16421/week @ 2024-08-21 13121/week @ 2024-08-28 15481/week @ 2024-09-04 12899/week @ 2024-09-11 14031/week @ 2024-09-18 17263/week @ 2024-09-25 16349/week @ 2024-10-02

62,853 downloads per month
Used in 18 crates (10 directly)

MIT/Apache

1MB
9K SLoC

libpulse-simple-binding

GitHub Workflow Status crates.io docs.rs min-rust-version

A Rust language binding for the PulseAudio libpulse-simple library.

Usage

Add the following two crates to the dependencies specified in your Cargo.toml (you will likely need to use components from the main binding crate in addition to this crate itself):

[dependencies]
libpulse-binding = "2.0"
libpulse-simple-binding = "2.0"

Though you may wish to rename the crates to shorter names (for example pulse and psimple) for cleaner references within your code:

[dependencies]
pulse = { version = "2.0", package = "libpulse-binding" }
psimple = { version = "2.0", package = "libpulse-simple-binding" }

An alternative to that which some may prefer is:

[dependencies.pulse]
version = "2.0"
package = "libpulse-binding"

[dependencies.psimple]
version = "2.0"
package = "libpulse-simple-binding"

PulseAudio version compatibility

The default functionality provided is support for PulseAudio version 8.0 or newer. This should be good enough for most needs, however if you need to use something only available in a newer version then you can select the corresponding version compatibility feature to raise the minimum compatibility level. You can also reduce support down to even older versions if you wish. See the overall project COMPATIBILITY.md file for further details.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.3–2MB
~42K SLoC