gnash::media::AudioDecoder Class Reference

Audio decoding base class. More...

#include <AudioDecoder.h>

Inheritance diagram for gnash::media::AudioDecoder:

gnash::media::AudioDecoderFfmpeg gnash::media::AudioDecoderGst gnash::media::AudioDecoderNellymoser gnash::media::AudioDecoderSimple

List of all members.

Public Member Functions

 AudioDecoder ()
virtual ~AudioDecoder ()
virtual bool setup (AudioInfo *)
 Sets up the decoder.
virtual bool setup (SoundInfo *)
 Sets up the decoder.
virtual boost::uint8_t * decode (boost::uint8_t *, boost::uint32_t, boost::uint32_t &, boost::uint32_t &, bool)
 Decodes a frame and returns a pointer to the data.


Detailed Description

Audio decoding base class.

Constructor & Destructor Documentation

gnash::media::AudioDecoder::AudioDecoder (  )  [inline]

virtual gnash::media::AudioDecoder::~AudioDecoder (  )  [inline, virtual]


Member Function Documentation

virtual bool gnash::media::AudioDecoder::setup ( AudioInfo  )  [inline, virtual]

Sets up the decoder.

Parameters:
info AudioInfo class with all the info needed to decode the sound correctly.
Returns:
true if succesfull else false

Reimplemented in gnash::media::AudioDecoderNellymoser, gnash::media::AudioDecoderSimple, gnash::media::AudioDecoderFfmpeg, and gnash::media::AudioDecoderGst.

virtual bool gnash::media::AudioDecoder::setup ( SoundInfo  )  [inline, virtual]

Sets up the decoder.

Parameters:
info SoundInfo class with all the info needed to decode the audio correctly.
Returns:
true if succesfull else false

Reimplemented in gnash::media::AudioDecoderNellymoser, gnash::media::AudioDecoderSimple, and gnash::media::AudioDecoderFfmpeg.

virtual boost::uint8_t* gnash::media::AudioDecoder::decode ( boost::uint8_t *  ,
boost::uint32_t  ,
boost::uint32_t &  ,
boost::uint32_t &  ,
bool   
) [inline, virtual]

Decodes a frame and returns a pointer to the data.

Parameters:
input The audio data
inputSize The size of the video data
outputSize The output size of the video data, is passed by reference.
decodedData The amount of bytes that has been decoded when decoding is done, is passed by reference.
parse Should we parse the audio? Needed for embedded MP3 sounds.
Returns:
a pointer to the decoded data, or NULL if decoding fails. The caller owns the decoded data.

Reimplemented in gnash::media::AudioDecoderNellymoser, gnash::media::AudioDecoderSimple, gnash::media::AudioDecoderFfmpeg, and gnash::media::AudioDecoderGst.


The documentation for this class was generated from the following file:
Generated on Thu Mar 6 18:25:11 2008 for Gnash by  doxygen 1.5.4