Audio::Extract::PCM::Backend::Mad - mad backend for audio extraction
This module makes Audio::Extract::PCM capable to use the libmad library (specifically Audio::Mad) for audio extraction.
Unless Sys::Mmap::Simple is available, the MP3 encoded data will be read into memory completely. This is a few megabytes for typical music files, but may be some hundred MB or more for radio broadcasts, music albums or whatever strange applications you find for this module.
If Sys::MMap::Simple is installed, it will be used automatically.
Audio::Mad version 0.6 from 2003 has problems. Consider applying the patch from http://rt.cpan.org/Public/Bug/Display.html?id=42338 until Audio::Mad releases a fixed version.
See "new" in Audio::Extract::PCM::Backend.
See "open" in Audio::Extract::PCM::Backend.
See "read" in Audio::Extract::PCM::Backend.
Returns a hashref with Audio::Mad's version as a value.
To install Audio::Extract::PCM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Extract::PCM
CPAN shell
perl -MCPAN -e shell install Audio::Extract::PCM
For more information on module installation, please visit the detailed CPAN module installation guide.