Gnash
0.8.11dev
|
Audio decoding using "simple" internal decoders. More...
#include <AudioDecoderSimple.h>
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... | |
![]() | |
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... | |
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 _, and gnash::log_debug().
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 _, and gnash::log_debug().
gnash::media::AudioDecoderSimple::~AudioDecoderSimple | ( | ) |
References _, gnash::media::AUDIO_CODEC_ADPCM, gnash::media::AUDIO_CODEC_RAW, gnash::media::AUDIO_CODEC_UNCOMPRESSED, gnash::media::AudioInfo::codec, gnash::media::CODEC_TYPE_FLASH, gnash::media::SoundInfo::getFormat(), gnash::media::SoundInfo::getSampleCount(), gnash::media::SoundInfo::getSampleRate(), gnash::media::SoundInfo::is16bit(), gnash::media::SoundInfo::isStereo(), gnash::log_unimpl(), gnash::media::AudioInfo::sampleRate, gnash::media::AudioInfo::sampleSize, gnash::media::AudioInfo::stereo, and gnash::media::AudioInfo::type.
|
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 _, 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.