Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members  

dec_mp3.h

Go to the documentation of this file.
00001 /* MuSE - Multiple Streaming Engine
00002  * Copyright (C) 2000-2002 Denis Roio aka jaromil <jaromil@dyne.org>
00003  *
00004  * This source code is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Public License as published 
00006  * by the Free Software Foundation; either version 2 of the License,
00007  * or (at your option) any later version.
00008  *
00009  * This source code is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00012  * Please refer to the GNU Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Public License along with
00015  * this source code; if not, write to:
00016  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017  *
00018  * "$Id: dec_mp3.h,v 1.2 2004/04/03 00:33:03 jaromil Exp $"
00019  *
00020  */
00021 
00028 #ifndef __DEC_MP3_H__
00029 #define __DEC_MP3_H__
00030 
00031 #include <decoder.h>
00032 #include <config.h>
00033 
00034 /* mpeg lib (splay) */
00035 #include <libmpeg/mpegsound.h>
00036 
00045 class MuseDecMp3: public MuseDec {
00046  private:
00047   Soundinputstream *loader;
00048   Mpegtoraw *server;
00049 
00050   int framesize;
00051   int chunk_smp;
00052 
00053   char _file[MAX_PATH_SIZE];
00054 
00055  public:
00056   MuseDecMp3();
00057   ~MuseDecMp3();
00058   
00059   int load(char *file);
00060   bool seek(float pos);
00061   void clean();
00062 
00063   IN_DATATYPE *get_audio();
00064 
00065 };
00066 
00067 #endif

Generated on Thu Dec 16 12:28:20 2004 for MuSE by doxygen1.3