gxAudioFilter.h

Go to the documentation of this file.
00001 /*  Copyright (C) 2004  Guido Simone
00002  *
00003  *  This program is free software; you can redistribute it and/or modify
00004  *  it under the terms of the GNU General Public License as published by
00005  *  the Free Software Foundation; either version 2 of the License, or
00006  *  (at your option) any later version.
00007  *
00008  *  This program is distributed in the hope that it will be useful,
00009  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  *  GNU General Public License for more details.
00012 
00013  *  You should have received a copy of the GNU General Public License
00014  *  along with this program; if not, write to the Free Software
00015  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00016  */
00017 
00018 #ifndef GXLIB_GXAUDIOFILTER_H
00019 #define GXLIB_GXAUDIOFILTER_H
00020 
00021 
00022 #include "../gx.h"
00023 #include "gxMediaControl.h"
00024 
00025 class gxAudioPin;
00026 class gxAudioCard;
00027 class gxAudioGraph;
00028 class gxAudioClockSource;
00029 class gxAudioClockSink;
00030 class gxPanel;
00031 class gxProperties;
00032 class gxAudioFilterVisitor;
00033 
00037 class gxAudioFilter : public gxMediaControl
00038 {
00039 protected:
00040    gxAudioFilter() { };
00041 
00042 public:
00043    virtual ~gxAudioFilter() { };
00044 
00045    virtual bool accept( gxAudioFilterVisitor * visitor ) = 0;
00051    virtual gxAudioClockSink * castClockSink() = 0;
00057    virtual gxAudioClockSource * castClockSource() = 0;
00062    virtual int createPanel( gxPanel ** panel ) = 0;
00066    virtual gxAudioPin * findPinById( const char * id ) = 0;
00070    virtual gxAudioPin * findPinByName( const char * name ) = 0;
00075    virtual gxAudioGraph * getGraph() = 0;
00080    virtual std::string getName() = 0;
00085    virtual gxAudioPin * getPin( int index ) = 0;
00089    virtual int getPinCount() = 0;
00093    virtual state_t getState() = 0;
00099    virtual bool isRunDirectly() = 0;
00105    virtual bool isSoundSource() = 0;
00111    virtual int loadFile( const char * fileName ) = 0;
00115    virtual int pause() = 0;
00119    virtual int run() = 0;
00125    virtual int saveFile( const char * fileName ) = 0;
00129    virtual int stop() = 0;
00134    virtual void groupPins( const char * groupName, int pinType, bool isInput ) = 0;
00135    virtual gxAudioCard * getAudioCard() = 0;
00136 
00137    virtual int loadString( const char * str ) = 0;
00138    virtual int saveString( std::string * str ) = 0;
00139 
00140    virtual gxProperties & getProperties() = 0;
00141 
00142 private:
00143    gxAudioFilter( const gxAudioFilter & rhs);
00144    gxAudioFilter & operator=( const gxAudioFilter & rhs);
00145 };
00146 #endif

Generated on Mon Nov 21 01:01:35 2005 for gxLib by  doxygen 1.4.5