simplemad is a simple interface for libmad, the MPEG audio decoding library. simplemad is useful for those who need to decode MP3 or other MPEG audio files in full.
Use
Create a Decoder from a boxed Reader.
let path = new;
let f = open.unwrap;
let decoder = new;
Decoder implements Iterator and yields a sequence of Result<Frame, MadError>.
for item in decoder
libmad samples are signed 32-bit integers. MP3 files often begin with metadata, which will cause libmad to complain. It is safe to ignore errors until libmad reaches audio data and starts producing frames.
Documentation
TODO
Dependencies
-
libmad (FTP: ftp://ftp.mars.org/pub/mpeg/ or SourceForge)
-
libc
License
MIT