6 releases
0.3.1 | Dec 10, 2023 |
---|---|
0.3.0 | Dec 17, 2022 |
0.2.2 | Jul 25, 2021 |
0.2.1 | Feb 14, 2021 |
0.1.0 | Aug 22, 2020 |
#72 in Multimedia
418 downloads per month
Used in 2 crates
2MB
46K
SLoC
Contains (obscure autoconf code, 6KB) ogg/configure.ac
Rust FFI bindings to the libFLAC
library
This crate provides raw FFI bindings to the libFLAC
library for reading and
writing losslessly compressed FLAC audio files.
- Crate: https://crates.io/crates/libflac-sys
- Documentation: https://docs.rs/libflac-sys
Following the *-sys
package conventions,
the libflac-sys
crate does not define higher-level abstractions over
the native libFLAC
library functions.
Usage
Add this to your Cargo.toml
:
[dependencies]
libflac-sys = "0.3"
Features
build-flac
(enabled by default): buildlibFLAC
instead of linking to the system library –cmake
and a C toolchain is requiredbuild-ogg
(enabled by default, impliesbuild-flac
): build support for FLAC data in OGG containers intolibFLAC
; ifbuild-flac
is not selected, support for OGG containers depends on the configuration of the systemlibFLAC
Auto-generating the Rust bindings
The Rust bindings have already been auto-generated with bindgen
(using the bindgen/run-bindgen.sh
script) and are part of this crate
(see src/bindings.rs
).
Contributing
If you want to report a problem or suggest an improvement, please go to https://github.com/mgeier/libflac-sys. Contributions are always welcome!
Licenses
This crate uses the BSD-3-Clause
license, in reference to
Xiph.Org's BSD-like license which is used as
libFLAC
license and
libogg
license.