Skip to content

MP3 decoding library in pure Rust

License

CC0-1.0, MIT licenses found

Licenses found

CC0-1.0
LICENSE-CC0
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Herschel/puremp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puremp3

No Maintenance Intended crates.io docs.rs CircleCI

An MP3 decoder written in pure Rust.

This project is currently unmaintained and probably not suitable for production. Pull requests are accepted.

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.

About

MP3 decoding library in pure Rust

Resources

License

CC0-1.0, MIT licenses found

Licenses found

CC0-1.0
LICENSE-CC0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages