#pulse-audio #binding

libpulse-binding

A Rust language binding for the PulseAudio libpulse library

33 stable releases

2.28.1 Jul 18, 2023
2.27.1 Jan 9, 2023
2.26.0 Jan 13, 2022
2.25.0 Aug 29, 2021
1.0.3 Feb 10, 2018

#15 in Audio

Download history 13599/week @ 2024-07-30 16281/week @ 2024-08-06 10981/week @ 2024-08-13 18549/week @ 2024-08-20 15427/week @ 2024-08-27 18203/week @ 2024-09-03 16484/week @ 2024-09-10 17816/week @ 2024-09-17 20025/week @ 2024-09-24 21118/week @ 2024-10-01 20977/week @ 2024-10-08 24875/week @ 2024-10-15 25152/week @ 2024-10-22 24489/week @ 2024-10-29 24418/week @ 2024-11-05 16723/week @ 2024-11-12

93,884 downloads per month
Used in 55 crates (39 directly)

MIT/Apache

780KB
9K SLoC

libpulse-binding

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

A Rust language binding for the PulseAudio libpulse library.

Usage

Add this crate to the dependencies specified in your Cargo.toml:

[dependencies]
libpulse-binding = "2.0"

Though you may wish to rename the crate to a shorter name (for example pulse) for cleaner references within your code:

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

An alternative to that which some may prefer is:

[dependencies.pulse]
version = "2.0"
package = "libpulse-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.5–2MB
~45K SLoC