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 #ifndef GNASH_AUDIODECODERSIMPLE_H
00021 #define GNASH_AUDIODECODERSIMPLE_H
00022
00023 #include "AudioDecoder.h"
00024 #include "MediaParser.h"
00025
00026
00027 namespace gnash {
00028 namespace media {
00029 class SoundInfo;
00030 class AudioInfo;
00031 }
00032 }
00033
00034 namespace gnash {
00035 namespace media {
00036
00038 class AudioDecoderSimple : public AudioDecoder {
00039
00040 public:
00041
00049 AudioDecoderSimple(const AudioInfo& info);
00050
00058 AudioDecoderSimple(const SoundInfo& info);
00059
00060 ~AudioDecoderSimple();
00061
00062
00063 boost::uint8_t* decode(const boost::uint8_t* input, boost::uint32_t inputSize, boost::uint32_t& outputSize, boost::uint32_t& decodedBytes, bool parse);
00064
00065 private:
00066
00067
00068 void setup(const AudioInfo& info);
00069
00070
00071 void setup(const SoundInfo& info);
00072
00073
00074 audioCodecType _codec;
00075
00076
00077 boost::uint16_t _sampleRate;
00078
00079
00080 boost::uint32_t _sampleCount;
00081
00082
00083 bool _stereo;
00084
00085
00086 bool _is16bit;
00087
00088
00089
00090 };
00091
00092 }
00093 }
00094
00095 #endif // __AUDIODECODERSIMPLE_H__
00096