Expand description
Idiomatic no_std
bindings to lieff’s minimp3.
§Features
mp1-mp2
: Includes MP1 and MP2 decoding code.simd
(default): Enables handwritten SIMD optimizations on eligible targets.
§Example
use empy::{DecoderStream, Frame};
let mp3 = std::fs::read("test.mp3")?;
let mut decoder = DecoderStream::new(&mp3);
while let Some(frame) = decoder.next() {
// *process frame here*
}
See documentation for DecoderStream
and its lower-level cousin Decoder
for more info.
Structs§
- Audio
- Describes audio samples in a frame.
- Decoder
- Low-level stateless decoder for parsing and/or decoding MPEG Audio.
- Decoder
Stream - High-level streaming iterator for parsing and/or decoding MPEG Audio.
Enums§
- Frame
- Describes a frame that contains audio or other (unknown) data.
Constants§
- MAX_
SAMPLES - Maximum number of samples per frame.
Functions§
- f32_
to_ i16_ pcm - Highly optimised function for converting
f32
samples toi16
samples.