00001 // AudioDecoder.h: Audio decoding base class. 00002 // 00003 // Copyright (C) 2007, 2008 Free Software Foundation, Inc. 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 // $Id: AudioDecoder_8h-source.html,v 1.1 2008/03/07 02:36:17 bjacques Exp $ 00020 00021 #ifndef __AUDIODECODER_H__ 00022 #define __AUDIODECODER_H__ 00023 00024 #include "MediaParser.h" 00025 #include "SoundInfo.h" 00026 00027 namespace gnash { 00028 namespace media { 00029 00031 class AudioDecoder { 00032 00033 public: 00034 AudioDecoder() {} 00035 00036 // virtual classes need a virtual destructor ! 00037 virtual ~AudioDecoder() {} 00038 00040 // 00047 virtual bool setup(AudioInfo* /*info*/) { return false; } 00048 00050 // 00057 virtual bool setup(SoundInfo* /*info*/) { return false; } 00058 00060 // 00080 virtual boost::uint8_t* decode(boost::uint8_t* /*input*/, boost::uint32_t /*inputSize*/, boost::uint32_t& /*outputSize*/, boost::uint32_t& /*decodedData*/, bool /*parse*/) { return NULL; } 00081 00082 }; 00083 00084 } // gnash.media namespace 00085 } // gnash namespace 00086 00087 #endif // __AUDIODECODER_H__
1.5.4