AudioDecoderSimple.h

Go to the documentation of this file.
00001 // AudioDecoderSimple.h: Audio decoding using "simple" internal decoders.
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: AudioDecoderSimple_8h-source.html,v 1.1 2008/03/07 02:36:16 bjacques Exp $
00020 
00021 #ifndef __AUDIODECODERSIMPLE_H__
00022 #define __AUDIODECODERSIMPLE_H__
00023 
00024 #include "log.h"
00025 #include "AudioDecoder.h"
00026 
00027 namespace gnash {
00028         class SoundInfo;
00029 }
00030 
00031 namespace gnash {
00032 namespace media {
00033 
00035 class AudioDecoderSimple : public AudioDecoder {
00036 
00037 public:
00038         AudioDecoderSimple();
00039         ~AudioDecoderSimple();
00040 
00041         bool setup(AudioInfo* info);
00042 
00043         bool setup(SoundInfo* info);
00044 
00045         boost::uint8_t* decode(boost::uint8_t* input, boost::uint32_t inputSize, boost::uint32_t& outputSize, boost::uint32_t& decodedBytes, bool parse);
00046 
00047 private:
00048 
00049         // codec
00050         audioCodecType _codec;
00051 
00052         // samplerate
00053         boost::uint16_t _sampleRate;
00054 
00055         // sampleCount
00056         boost::uint32_t _sampleCount;
00057 
00058         // stereo
00059         bool _stereo;
00060 
00061         // samplesize: 8 or 16 bit
00062         bool _is16bit;
00063 
00064 
00065         // 
00066 };
00067         
00068 } // gnash.media namespace 
00069 } // gnash namespace
00070 
00071 #endif // __AUDIODECODERSIMPLE_H__
00072 

Generated on Thu Mar 6 18:25:07 2008 for Gnash by  doxygen 1.5.4