[−][src]Crate libflac_sys
This crate provides raw FFI bindings to the libFLAC
library for reading and
writing losslessly compressed FLAC audio files.
Following the *-sys
package conventions,
the libflac-sys
crate does not define higher-level abstractions over
the native libFLAC
library functions.
Original C API documentation: https://xiph.org/flac/api/
Usage
Add this to your Cargo.toml
:
[dependencies]
libflac-sys = "0.1"
Features
ogg
(enabled by default): Support for FLAC data in OGG containers
Building the libFLAC
and libogg
libraries
When building this crate, the libFLAC
library is automatically built as well,
using the cmake crate.
Furthermore, the libogg
library is built when the ogg
feature is selected.
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.
Structs
Constants
Statics
Functions
Type Definitions
Unions
FLAC__EntropyCodingMethod__bindgen_ty_1 | |
FLAC__FrameHeader__bindgen_ty_1 | |
FLAC__StreamMetadata__bindgen_ty_1 | |
FLAC__Subframe__bindgen_ty_1 |