Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::media::AudioDecoderSimple Class Reference

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

#include <AudioDecoderSimple.h>

Inheritance diagram for gnash::media::AudioDecoderSimple:
gnash::media::AudioDecoder

Public Member Functions

 AudioDecoderSimple (const AudioInfo &info)
 
 AudioDecoderSimple (const SoundInfo &info)
 
 ~AudioDecoderSimple ()
 
std::uint8_t * decode (const std::uint8_t *input, std::uint32_t inputSize, std::uint32_t &outputSize, std::uint32_t &decodedBytes)
 Decodes a frame and returns a pointer to the data. More...
 
- Public Member Functions inherited from gnash::media::AudioDecoder
 AudioDecoder ()
 
virtual ~AudioDecoder ()
 
virtual std::uint8_t * decode (const EncodedAudioFrame &input, std::uint32_t &outputSize)
 Decodes an EncodedAudioFrame and returns a pointer to the decoded data. More...
 

Detailed Description

Audio decoding using "simple" internal decoders.

Constructor & Destructor Documentation

§ AudioDecoderSimple() [1/2]

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

References _, and gnash::log_debug().

§ AudioDecoderSimple() [2/2]

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

References _, and gnash::log_debug().

§ ~AudioDecoderSimple()

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

Member Function Documentation

§ decode()

std::uint8_t * gnash::media::AudioDecoderSimple::decode ( const std::uint8_t *  input,
std::uint32_t  inputSize,
std::uint32_t &  outputSize,
std::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 unique_ptr

Reimplemented from gnash::media::AudioDecoder.

References _, 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::log_error(), gnash::key::s, and gnash::key::u.


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