gnash::media::AudioDecoderSimple Class Reference

Audio decoding using "simple" internal decoders. More...

#include <AudioDecoderSimple.h>

Inheritance diagram for gnash::media::AudioDecoderSimple:

gnash::media::AudioDecoder

List of all members.

Public Member Functions

 AudioDecoderSimple ()
 ~AudioDecoderSimple ()
bool setup (AudioInfo *info)
 Sets up the decoder.
bool setup (SoundInfo *info)
 Sets up the decoder.
boost::uint8_t * decode (boost::uint8_t *input, boost::uint32_t inputSize, boost::uint32_t &outputSize, boost::uint32_t &decodedBytes, bool parse)
 Decodes a frame and returns a pointer to the data.


Detailed Description

Audio decoding using "simple" internal decoders.

Constructor & Destructor Documentation

gnash::media::AudioDecoderSimple::AudioDecoderSimple (  ) 

gnash::media::AudioDecoderSimple::~AudioDecoderSimple (  ) 


Member Function Documentation

bool gnash::media::AudioDecoderSimple::setup ( AudioInfo  )  [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 from gnash::media::AudioDecoder.

bool gnash::media::AudioDecoderSimple::setup ( SoundInfo  )  [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 from gnash::media::AudioDecoder.

boost::uint8_t * gnash::media::AudioDecoderSimple::decode ( boost::uint8_t *  ,
boost::uint32_t  ,
boost::uint32_t &  ,
boost::uint32_t &  ,
bool   
) [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 from gnash::media::AudioDecoder.


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