Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

MPluginAudioInputPort.h

00001 /*
00002 
00003     This file is part of la Marmite.
00004     Copyright (C) 2005 Nicolas Falquet.
00005 
00006     La Marmite is free software ; you can redistribute it and/or
00007     modify it under the terms of the GNU General Public License as
00008     published by the Free Software Foundation ; either version 2 of
00009     the License, or (at your option) any later version.
00010 
00011     La Marmite is distributed in the hope that it will be useful, but
00012     WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with la Marmite ; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019     02111-1307  USA
00020 
00021 */
00022 
00023 #ifndef M_PLUGIN_AUDIO_INPUT_PORT
00024 #define M_PLUGIN_AUDIO_INPUT_PORT
00025 
00026 #include "MPluginPort.h"
00027 #include "MAudioInputPort.h"
00028 
00029 #include "MPlugin.h"
00030 
00035 class MPluginAudioInputPort : public MAudioInputPort, public MPluginPort
00036 {
00037 
00038   Q_OBJECT
00039 
00040 public:
00041 
00042   // destructor
00043 
00044   virtual ~ MPluginAudioInputPort ( ) { }
00045 
00046   // functions
00047 
00048   virtual float * Buffer ( );
00049 
00065   virtual bool AutoCalculateBuffer( ) const;
00066 
00067   // methods
00068 
00076   virtual void CalculateBuffer ( );
00077 
00082   virtual void SetAutoCalculateBuffer ( bool value );
00083 
00084 public slots :
00085 
00086   virtual bool Connect ( MAudioOutputPort * port );
00087 
00088   virtual bool Disconnect ( MAudioOutputPort * port );
00089 
00090 protected:
00091 
00092   // protected constructor
00093 
00101   MPluginAudioInputPort ( MPlugin * plugin, const unsigned long portNumber );
00102 
00103   friend void MPlugin::createAudioInput ( const unsigned long portNumber );
00104 
00105   // protected attributes
00106 
00108   bool _autoCalculateBuffer;
00109 
00110 };
00111 
00112 #endif // M_PLUGIN_AUDIO_INPUT_PORT

Generated on Mon Jan 31 12:43:31 2005 for la Marmite by Doxygen 1.4.1