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

Audio decoder for the speex codec. More...

#include <AudioDecoderSpeex.h>

Inheritance diagram for gnash::media::AudioDecoderSpeex:
gnash::media::AudioDecoder

Public Member Functions

 AudioDecoderSpeex ()
 
 ~AudioDecoderSpeex ()
 
std::uint8_t * decode (const EncodedAudioFrame &input, std::uint32_t &outputSize)
 Decodes an EncodedAudioFrame and returns a pointer to the decoded data. More...
 
- Public Member Functions inherited from gnash::media::AudioDecoder
 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...
 

Detailed Description

Audio decoder for the speex codec.

This class will use the speex resampler if available

Constructor & Destructor Documentation

§ AudioDecoderSpeex()

gnash::media::AudioDecoderSpeex::AudioDecoderSpeex ( )

References _.

§ ~AudioDecoderSpeex()

gnash::media::AudioDecoderSpeex::~AudioDecoderSpeex ( )

References data.

Member Function Documentation

§ decode()

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

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 from gnash::media::AudioDecoder.

References _, gnash::media::AudioResampler::convert_raw_data(), gnash::media::EncodedAudioFrame::data, gnash::media::EncodedAudioFrame::dataSize, gnash::key::i, and gnash::log_error().


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