Mark McConnell > Audio-Mad > Audio::Mad::Frame

Download:
Audio-Mad-0.6.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

 Audio::Mad::Frame - Interface to mad_frame structure

SYPNOSIS ^

 my $frame = new Audio::Mad::Frame;

 FRAME: while(1) {
        if ($frame->decode($stream) == -1) {
                print "stream error: " . $stream->error() . "\n";
                last FRAME;
        }
        
        my $layer      = $frame->layer();
        my $mode       = $frame->mode();
        my $bitrate    = $frame->bitrate();
        my $samplerate = $frame->samplerate();
        my $timer      = $frame->duration(); #see Audio::Mad::Timer
        my $flags      = $frame->flags();
        
        # do something with the frame.  usually requires
        # Audio::Mad::Synth (see docs)
 }

DESCRIPTION ^

  This package provides an interface to the underlying mad_frame
  structure used in the decoder library.  Most of the functions
  and underlying data are exposed to perl.

METHODS ^

AUTHOR ^

  Mark McConnell <mischke@cpan.org>
syntax highlighting: