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_AUDIODECODER_H
00021 #define GNASH_AUDIODECODER_H
00022
00023 #include <boost/cstdint.hpp>
00024
00025
00026 namespace gnash {
00027 namespace media {
00028 class EncodedAudioFrame;
00029 }
00030 }
00031
00032 namespace gnash {
00033 namespace media {
00034
00036 class AudioDecoder {
00037
00038 public:
00039
00040 AudioDecoder() {}
00041
00042
00043 virtual ~AudioDecoder() {}
00044
00046
00068 virtual boost::uint8_t* decode(const boost::uint8_t* input,
00069 boost::uint32_t inputSize, boost::uint32_t& outputSize,
00070 boost::uint32_t& decodedData, bool parse);
00071
00073
00085 virtual boost::uint8_t* decode(const EncodedAudioFrame& input,
00086 boost::uint32_t& outputSize);
00087
00088 };
00089
00090 inline boost::uint8_t*
00091 AudioDecoder::decode(const boost::uint8_t*, boost::uint32_t, boost::uint32_t&,
00092 boost::uint32_t&, bool)
00093 { return 0; }
00094
00095 inline boost::uint8_t*
00096 AudioDecoder::decode(const EncodedAudioFrame&, boost::uint32_t&)
00097 { return 0; }
00098
00099 }
00100 }
00101
00102 #endif // __AUDIODECODER_H__