#pulse-audio #ffi

sys libpulse-simple-sys

FFI bindings for the PulseAudio libpulse-simple system library

34 stable releases

1.21.1 Jul 18, 2023
1.20.1 Jan 9, 2023
1.19.2 Dec 7, 2021
1.19.1 Aug 29, 2021
1.0.2 Feb 9, 2018

#813 in Audio

Download history 11345/week @ 2024-06-17 12869/week @ 2024-06-24 10647/week @ 2024-07-01 15404/week @ 2024-07-08 10886/week @ 2024-07-15 13861/week @ 2024-07-22 10887/week @ 2024-07-29 12056/week @ 2024-08-05 8201/week @ 2024-08-12 14057/week @ 2024-08-19 14309/week @ 2024-08-26 15145/week @ 2024-09-02 14233/week @ 2024-09-09 13410/week @ 2024-09-16 17173/week @ 2024-09-23 15968/week @ 2024-09-30

62,163 downloads per month
Used in 20 crates (2 directly)

MIT/Apache

175KB
2K SLoC

libpulse-simple-sys

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

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

Usage

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

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

An alternative to that which some may prefer is:

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

[dependencies.psimple]
version = "1.0"
package = "libpulse-simple-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

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–1.8MB
~40K SLoC