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

Audio decoding base class. More...

#include <AudioDecoder.h>

Inheritance diagram for gnash::media::AudioDecoder:
gnash::media::AudioDecoderSimple gnash::media::AudioDecoderSpeex gnash::media::ffmpeg::AudioDecoderFfmpeg gnash::media::gst::AudioDecoderGst gnash::media::haiku::AudioDecoderHaiku

Public Member Functions

 AudioDecoder ()
 
virtual ~AudioDecoder ()
 
virtual std::uint8_t * decode (const std::uint8_t *input, std::uint32_t inputSize, std::uint32_t &outputSize, std::uint32_t &decodedData)
 Decodes a frame and returns a pointer to the data. More...
 
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 base class.

Constructor & Destructor Documentation

§ AudioDecoder()

gnash::media::AudioDecoder::AudioDecoder ( )
inline

§ ~AudioDecoder()

virtual gnash::media::AudioDecoder::~AudioDecoder ( )
inlinevirtual

Member Function Documentation

§ decode() [1/2]

std::uint8_t * gnash::media::AudioDecoder::decode ( const std::uint8_t *  input,
std::uint32_t  inputSize,
std::uint32_t &  outputSize,
std::uint32_t &  decodedData 
)
inlinevirtual

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 in gnash::media::AudioDecoderSimple, gnash::media::ffmpeg::AudioDecoderFfmpeg, gnash::media::haiku::AudioDecoderHaiku, and gnash::media::gst::AudioDecoderGst.

Referenced by gnash::sound::EmbedSoundInst::EmbedSoundInst(), and gnash::sound::StreamingSound::StreamingSound().

§ decode() [2/2]

std::uint8_t * gnash::media::AudioDecoder::decode ( const EncodedAudioFrame input,
std::uint32_t &  outputSize 
)
inlinevirtual

Decodes an EncodedAudioFrame and returns a pointer to the decoded data.

Parameters
inputThe audio data
outputSizeThe output size of the video data, 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 in gnash::media::ffmpeg::AudioDecoderFfmpeg, gnash::media::haiku::AudioDecoderHaiku, gnash::media::gst::AudioDecoderGst, and gnash::media::AudioDecoderSpeex.


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