Mark McConnell > Audio-Mad-0.6 > Audio::Mad::Stream

Download:
Audio-Mad-0.6.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Audio::Mad::Stream - Interface to mad_stream structure

SYPNOSIS ^

 my $stream = new Audio::Mad::Stream ($options);
 $stream->buffer($scalar);
 
 my $remain = substr($scalar, $stream->next_frame);
 my $position = $stream->this_frame;
 
 $stream->skip($position + 400);
 $stream->sync();
 
 $options = $stream->options();
 $options |= MAD_OPTION_IGNORECRC;
 $stream->options($options);
 
 unless ($stream->err_ok()) {
        print "error code was: " . $stream->error() . "\n";
 }

DESCRIPTION ^

 This package provides an interface to the underlying mad_stream 
 structure used in the decoder library.  Almost all of the methods
 from the library are implemented,  and work on regualar perl data
 types.

METHODS ^

AUTHOR ^

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