#pulse-audio #ffi

sys libpulse-sys

FFI bindings for the PulseAudio libpulse system library

45 stable releases

new 1.22.0 Mar 3, 2025
1.21.0 Jul 18, 2023
1.20.1 Jan 9, 2023
1.19.3 Dec 7, 2021
0.0.0 Jan 11, 2016

#353 in Audio

Download history 25324/week @ 2024-11-04 20086/week @ 2024-11-11 26202/week @ 2024-11-18 27034/week @ 2024-11-25 28210/week @ 2024-12-02 29257/week @ 2024-12-09 23168/week @ 2024-12-16 23299/week @ 2024-12-23 23671/week @ 2024-12-30 22240/week @ 2025-01-06 21086/week @ 2025-01-13 28174/week @ 2025-01-20 30709/week @ 2025-01-27 33797/week @ 2025-02-03 39473/week @ 2025-02-10 6059/week @ 2025-02-17

112,941 downloads per month
Used in 61 crates (8 directly)

MIT/Apache

165KB
2K SLoC

libpulse-sys

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

FFI bindings for the PulseAudio libpulse system library. See also the higher-level libpulse-binding crate.

Usage

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

[dependencies]
libpulse-sys = "1.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 = "1.0", package = "libpulse-sys" }

An alternative to that which some may prefer is:

[dependencies.pulse]
version = "1.0"
package = "libpulse-sys"

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 the following, 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

~0.3–1MB
~20K SLoC