Audio::Mad::Synth - Interface to mad_synth structure


Audio-Mad documentation  | view source Contained in the Audio-Mad distribution.

Index


NAME

Top

  Audio::Mad::Synth - Interface to mad_synth structure

SYPNOSIS

Top

  my $synth = new Audio::Mad::Synth;
  $synth->synth($frame);

  my ($left, $right) = $synth->samples();

  $synth->mute();

DESCRIPTION

Top

  This package provides an interface to the underlying mad_synth
  structure used in the decoder library.  

METHODS

Top

* 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.

AUTHOR

Top

  Mark McConnell <mischke@cpan.org>


Audio-Mad documentation  | view source Contained in the Audio-Mad distribution.