1 unstable release

0.1.0 May 26, 2019

#998 in Audio

Download history 32/week @ 2024-03-11 13/week @ 2024-03-18 26/week @ 2024-03-25 34/week @ 2024-04-01 8/week @ 2024-04-08 14/week @ 2024-04-15 16/week @ 2024-04-22 9/week @ 2024-04-29 10/week @ 2024-05-06 16/week @ 2024-05-13 21/week @ 2024-05-20 15/week @ 2024-05-27 15/week @ 2024-06-03 46/week @ 2024-06-10 33/week @ 2024-06-17 29/week @ 2024-06-24

125 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