Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Audio::Mad 0.6

    Download button

    No screenshots available
    Downloads: 487  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mark McConnell | More programs
    Perl Artistic License / FREE
    June 30th, 2006, 17:22 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Audio::Mad description

    A Perl interface to the mad MPEG decoder library.

    Audio::Mad is a Perl interface to the mad MPEG decoder library.

    SYNOPSIS

    use Audio::Mad qw(:all);

    my $stream = new Audio::Mad::Stream();
    my $frame = new Audio::Mad::Frame();
    my $synth = new Audio::Mad::Synth();
    my $timer = new Audio::Mad::Timer();
    my $resample = new Audio::Mad::Resample(44100, 22050);
    my $dither = new Audio::Mad::Dither();

    my $buffer = join('', );
    $stream->buffer($buffer);

    FRAME: {
    if ($frame->decode($stream) == -1) {
    last FRAME unless ($stream->err_ok());

    warn "decoding error: " . $stream->error();
    next FRAME;
    }

    $synth->synth($frame);
    my $pcm = $dither->dither($resample->resample($synth->samples()));

    print $pcm;
    next FRAME;
    }


    This module is an attempt to provide a perl interface to the MAD (MPEG Audio Decoder) library, written by Robert Leslie. It has been designed to be 100% object oriented, and to follow the MAD interface as closely as possible.

    So far, most of the MAD library, plus two companion modules are provided as part of the interface. Seperate documentation is provided in perldoc for all of the modules in the Audio::Mad framework.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    audio mad | Perl module | MPEG decoder | decoder | audio | mad

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM