Crate minimp3

Source
Expand description

§minimp3

Rust bindings with a high-level wrapper for the minimp3 C library.

The build process statically links all C code into the Rust library. There is no need for consumers to provide a library file of minimp3.

§CAUTION

This crate is not recommended for new projects due to multiple memory unsoundness issues and the availability of mature, safe Rust alternatives. Consider using fully Rust-based libraries instead, such as:

§Tokio

By enabling the feature flag async_tokio you can decode frames using async IO and tokio.

See the README for example usages.

Re-exports§

pub use minimp3_sys as ffi;

Structs§

Decoder
A MP3 decoder which consumes a reader and produces Frames.
Frame
A MP3 frame, owning the decoded audio of that frame.

Enums§

Error
Errors encountered by the MP3 decoder.

Constants§

MAX_SAMPLES_PER_FRAME
Maximum number of samples present in a MP3 frame.