Gnash
0.8.10
|
Audio decoding using "simple" internal decoders. More...
#include <AudioDecoderSimple.h>
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. |
Audio decoding using "simple" internal decoders.
gnash::media::AudioDecoderSimple::AudioDecoderSimple | ( | const AudioInfo & | info | ) |
info | AudioInfo class with all the info needed to decode the sound correctly. Throws a MediaException on fatal error. |
MediaException | on failure |
References _.
gnash::media::AudioDecoderSimple::AudioDecoderSimple | ( | const SoundInfo & | info | ) |
info | SoundInfo class with all the info needed to decode the sound correctly. Throws a MediaException on fatal error. |
MediaException | on failure |
References _.
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.
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. |
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.