Audio::Mad::Synth - Interface to mad_synth structure
my $synth = new Audio::Mad::Synth; $synth->synth($frame); my ($left, $right) = $synth->samples(); $synth->mute();
This package provides an interface to the underlying mad_synth structure used in the decoder library.
synth(frame)
Takes the subband samples stored in frame and synthesizes pcm data from them.
samples
Returns the current frames pcm samples in two scalars; left and right. right will be 'undef' while decoding mono streams.
mute
Mutes the current stream of pcm samples in the synthesizer.
Mark McConnell <mischke@cpan.org>
To install Audio::Mad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Mad
CPAN shell
perl -MCPAN -e shell install Audio::Mad
For more information on module installation, please visit the detailed CPAN module installation guide.