Crate empy

Source
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.
DecoderStream
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 to i16 samples.