Gnash  0.8.11dev
Public Member Functions
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 (const AudioInfo &info)
 AudioDecoderSimple (const SoundInfo &info)
 ~AudioDecoderSimple ()
boost::uint8_t * decode (const boost::uint8_t *input, boost::uint32_t inputSize, boost::uint32_t &outputSize, boost::uint32_t &decodedBytes)
 Decodes a frame and returns a pointer to the data.
- Public Member Functions inherited from gnash::media::AudioDecoder
 AudioDecoder ()
virtual ~AudioDecoder ()
virtual boost::uint8_t * decode (const EncodedAudioFrame &input, boost::uint32_t &outputSize)
 Decodes an EncodedAudioFrame and returns a pointer to the decoded data.

Detailed Description

Audio decoding using "simple" internal decoders.


Constructor & Destructor Documentation

gnash::media::AudioDecoderSimple::AudioDecoderSimple ( const AudioInfo info)
@param info
    AudioInfo class with all the info needed to decode
    the sound correctly. Throws a MediaException on fatal
    error.         
Exceptions:
MediaExceptionon failure

References _.

gnash::media::AudioDecoderSimple::AudioDecoderSimple ( const SoundInfo info)
@param info
    SoundInfo class with all the info needed to decode
    the sound correctly. Throws a MediaException on fatal
    error.           
Exceptions:
MediaExceptionon failure

References _.

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

Member Function Documentation

boost::uint8_t * gnash::media::AudioDecoderSimple::decode ( const boost::uint8_t *  input,
boost::uint32_t  inputSize,
boost::uint32_t &  outputSize,
boost::uint32_t &  decodedData 
)
virtual

Decodes a frame and returns a pointer to the data.

Parameters:
inputThe audio data
inputSizeThe size of the video data
outputSizeThe output size of the video data, is passed by reference.
decodedDataThe amount of bytes that has been decoded when decoding is done, is passed by reference.
Returns:
a pointer to the decoded data, or NULL if decoding fails. The caller owns the decoded data, which was allocated with new [].
Todo:
return a SimpleBuffer by auto_ptr

Reimplemented from gnash::media::AudioDecoder.

References _, assert, gnash::media::AUDIO_CODEC_ADPCM, gnash::media::AUDIO_CODEC_RAW, gnash::media::AUDIO_CODEC_UNCOMPRESSED, gnash::key::c, gnash::media::AudioResampler::convert_raw_data(), gnash::key::i, gnash::key::s, and gnash::key::u.


The documentation for this class was generated from the following files: