Audio::Mad::Stream is a Perl 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";
}
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.
Product's homepage
Requirements:
· Perl