1 unstable release

0.1.0 May 26, 2019

#937 in Audio

Download history 25/week @ 2023-11-20 20/week @ 2023-11-27 10/week @ 2023-12-04 15/week @ 2023-12-11 14/week @ 2023-12-18 10/week @ 2024-01-08 2/week @ 2024-01-29 29/week @ 2024-02-19 33/week @ 2024-02-26 17/week @ 2024-03-04

79 downloads per month
Used in fluffl

MIT OR CC0-1.0

185KB
5.5K SLoC

puremp3

CircleCI

An MP3 decoder written in pure Rust.

The motivation for this crate is to create a pure Rust MP3 decoder that easily compiles to the wasm32-unknown-unknown target. No claims are made to accuracy, performance, or compatibility. For a more robust decoder, try minimp3-rs.

Support

  • MPEG-1/MPEG-2/MPEG-2.5 Layer III

Example

let data = std::fs::read("tests/vectors/MonoCBR192.mp3").expect("Could not open file");
let (header, samples) = puremp3::read_mp3(&data[..]).expect("Invalid MP3");
for (left, right) in samples {
    // Operate on samples here
}

Prior art

The following implementations and documents were referenced in creating this crate:

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 shall be dual licensed as above, without any additional terms or conditions.

Dependencies