simplemad is a simple interface for libmad, the MPEG audio decoding library.
Use and examples
To begin, create a Decoder from a byte-oriented source using
Decoder::decode or Decoder::decode_interval. Fetch results using
get_frame or the Iterator interface.
MP3 files often begin or end with metadata, which will cause libmad to produce errors. It is safe to ignore these errors until libmad reaches the start of the audio data or the end of the file.
use Decoder;
use File;
use Path;
let path = new;
let file = open.unwrap;
let decoder = decode.unwrap;
for decoding_result in decoder
Decode the interval from 30 seconds to 60 seconds:
let partial_decoder = decode_interval.unwrap;
Documentation
http://bendykst.github.io/doc/simplemad/index.html
License
MIT