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

MClientAudioOutputPort.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_CLIENT_AUDIO_OUTPUT_PORT_H
00024 #define M_CLIENT_AUDIO_OUTPUT_PORT_H
00025 
00026 #include "MClientPort.h"
00027 #include "MAudioOutputPort.h"
00028 
00029 #include "MClient.h"
00030 
00035 class MClientAudioOutputPort : public MAudioOutputPort, public MClientPort
00036 {
00037 
00038   Q_OBJECT
00039 
00040 public :
00041 
00042   // destructor
00043 
00044   virtual ~ MClientAudioOutputPort ( ) { }
00045 
00046   // functions
00047 
00048   virtual MClient * Client ( ) const;
00049 
00055   virtual float * Buffer ( );
00056 
00057   // methods
00058 
00068   virtual bool Connect ( MAudioInputPort * port );
00069 
00073   virtual bool Disconnect ( MAudioInputPort * port );
00074 
00075 protected :
00076 
00077   // protected constructor
00078 
00083   MClientAudioOutputPort ( jack_port_t * jack_port, MClient * client );
00084 
00085   friend MClientAudioOutputPort * MClient::addAudioOutput ( jack_port_t * jackPort );
00086 
00087 };
00088 
00089 #endif // M_CLIENT_AUDIO_OUTPUT_PORT_H

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