00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __AUDIODECODERSIMPLE_H__
00022 #define __AUDIODECODERSIMPLE_H__
00023
00024 #include "log.h"
00025 #include "AudioDecoder.h"
00026
00027 namespace gnash {
00028 class SoundInfo;
00029 }
00030
00031 namespace gnash {
00032 namespace media {
00033
00035 class AudioDecoderSimple : public AudioDecoder {
00036
00037 public:
00038 AudioDecoderSimple();
00039 ~AudioDecoderSimple();
00040
00041 bool setup(AudioInfo* info);
00042
00043 bool setup(SoundInfo* info);
00044
00045 boost::uint8_t* decode(boost::uint8_t* input, boost::uint32_t inputSize, boost::uint32_t& outputSize, boost::uint32_t& decodedBytes, bool parse);
00046
00047 private:
00048
00049
00050 audioCodecType _codec;
00051
00052
00053 boost::uint16_t _sampleRate;
00054
00055
00056 boost::uint32_t _sampleCount;
00057
00058
00059 bool _stereo;
00060
00061
00062 bool _is16bit;
00063
00064
00065
00066 };
00067
00068 }
00069 }
00070
00071 #endif // __AUDIODECODERSIMPLE_H__
00072