earwax 0.1.2

Audio decoding library for Rust based on ffmpeg
docs.rs failed to build earwax-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: earwax-0.1.4

Audio decoding library based on ffmpeg 2.8. The purpose of this library is to provide a safe and simple way of converting any audio input to raw PCM data.

Dependencies

From ffmpeg 2.8, the required libraries are libavcodec, libavformat, and libavdevice.

Usage

extern crate earwax;

use earwax::Earwax;

fn main() {
    let mut earwax = Earwax::new("[URL]").unwrap();
    while let Some(chunk) = earwax.spit() {
        // Do something with chunk.data, an array of raw pcm data.
        println!("Time: {}", chunk.time.seconds()); // or chunk.time.pts().
    }
}

TODO

  • Add error handling to the spit function.