Audio decoding using "simple" internal decoders.
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.
- Parameters:
-
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. |
- 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 auto_ptr
Reimplemented from gnash::media::AudioDecoder.
References gnash::media::AUDIO_CODEC_ADPCM, gnash::media::AUDIO_CODEC_RAW, gnash::media::AUDIO_CODEC_UNCOMPRESSED, gnash::key::u, gnash::key::s, gnash::key::c, _, assert, gnash::key::i, and gnash::media::AudioResampler::convert_raw_data().