minimp3 0.3.1

Rust bindings for the minimp3 library.
Documentation

minimp3 Rust bindings

Cargo package Cargo package Build Status

Usage example

# Cargo.toml

[dependencies]
minimp3 = "0.3"
extern crate minimp3;

use minimp3::{Decoder, Frame};

use std::error::Error;
use std::fs::File;

fn main() -> Result<(), Box<Error>> {
    let mut decoder = Decoder::new(File::open("audio_file.mp3")?);

    loop {
        // Keep decoding frames until EOF is reached
        let Frame { data, sample_rate, channels, .. } = decoder.next_frame()?;
    }

    unreachable!()
}