Crates.io | puremp3 |
lib.rs | puremp3 |
version | 0.1.0 |
source | src |
created_at | 2019-05-26 01:55:49.395794 |
updated_at | 2019-05-26 01:55:49.395794 |
description | MP3 decoding in pure Rust |
homepage | |
repository | https://github.com/Herschel/puremp3 |
max_upload_size | |
id | 137047 |
size | 319,846 |
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.
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
}
The following implementations and documents were referenced in creating this crate:
Licensed under either of
at your option.
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.