Gnash  0.8.10
AudioDecoder.h
Go to the documentation of this file.
00001 // AudioDecoder.h: Audio decoding base class.
00002 // 
00003 //   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
00004 //   Free Software Foundation, Inc.
00005 // 
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 3 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 
00020 #ifndef GNASH_AUDIODECODER_H
00021 #define GNASH_AUDIODECODER_H
00022 
00023 #include <boost/cstdint.hpp> // for C99 int types
00024 
00025 // Forward declarations
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         // virtual classes need a virtual destructor !
00043         virtual ~AudioDecoder() {}
00044 
00046         //
00065         virtual boost::uint8_t* decode(const boost::uint8_t* input,
00066         boost::uint32_t inputSize, boost::uint32_t& outputSize,
00067         boost::uint32_t& decodedData);
00068 
00070         //
00082         virtual boost::uint8_t* decode(const EncodedAudioFrame& input,
00083                                        boost::uint32_t& outputSize);
00084 
00085 };
00086 
00087 inline boost::uint8_t*
00088 AudioDecoder::decode(const boost::uint8_t*, boost::uint32_t, boost::uint32_t&,
00089         boost::uint32_t&)
00090 {
00091     return 0;
00092 }
00093 
00094 inline boost::uint8_t*
00095 AudioDecoder::decode(const EncodedAudioFrame&, boost::uint32_t&)
00096 {
00097     return 0;
00098 }
00099         
00100 } // gnash.media namespace 
00101 } // gnash namespace
00102 
00103 #endif