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

Describes audio samples in a frame.

Low-level stateless decoder for parsing and/or decoding MPEG Audio.

High-level streaming iterator for parsing and/or decoding MPEG Audio.

Enums

Describes a frame that contains audio or other (unknown) data.

Constants

Maximum number of samples per frame.

Functions

Highly optimised function for converting f32 samples to i16 samples.