Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GNASH_AUDIODECODERSIMPLE_H
00022 #define GNASH_AUDIODECODERSIMPLE_H
00023
00024 #include "AudioDecoder.h"
00025 #include "MediaParser.h"
00026
00027
00028 namespace gnash {
00029 namespace media {
00030 class SoundInfo;
00031 class AudioInfo;
00032 }
00033 }
00034
00035 namespace gnash {
00036 namespace media {
00037
00039 class AudioDecoderSimple : public AudioDecoder {
00040
00041 public:
00042
00050 AudioDecoderSimple(const AudioInfo& info);
00051
00059 AudioDecoderSimple(const SoundInfo& info);
00060
00061 ~AudioDecoderSimple();
00062
00063
00064 boost::uint8_t* decode(const boost::uint8_t* input, boost::uint32_t inputSize, boost::uint32_t& outputSize, boost::uint32_t& decodedBytes);
00065
00066 private:
00067
00068
00069 void setup(const AudioInfo& info);
00070
00071
00072 void setup(const SoundInfo& info);
00073
00074
00075 audioCodecType _codec;
00076
00077
00078 boost::uint16_t _sampleRate;
00079
00080
00081 boost::uint32_t _sampleCount;
00082
00083
00084 bool _stereo;
00085
00086
00087 bool _is16bit;
00088
00089
00090
00091 };
00092
00093 }
00094 }
00095
00096 #endif // __AUDIODECODERSIMPLE_H__
00097