NullIO.h

Go to the documentation of this file.
00001 //
00002 //  PAIO.h -- DAC IO using PortAudio
00003 //  See the copyright notice and acknowledgment of authors in the file COPYRIGHT
00004 //
00005 
00006 
00007 #ifndef CSL_NULLIO_H
00008 #define CSL_NULLIO_H
00009 
00010 #include "CSL_Core.h"
00011 
00012 #include "ThreadUtilities.h"    // Thread util classes (used only by NullIO)
00013 #include "ThreadedFrameStream.h"
00014 
00015 namespace csl {
00016 
00022 class NullIO : public IO, public ThreadPthread {
00023 public:             
00024     NullIO();                       
00025     virtual ~NullIO();
00026     
00027     void start() throw(CException);         
00028     void stop() throw(CException);          
00029     Buffer & getInput() throw(CException) { return mEmptyBuffer; };
00030     Buffer & getInput(unsigned numFrames, unsigned numChannels) throw(CException) { return mEmptyBuffer; };
00031 
00032 protected:
00033     bool mRunning;                      
00034     Thread * mThread;                   
00035     Synch * mSynch;
00036     static void * FeederFunction(void * arg);       
00037     Buffer mEmptyBuffer;
00038 };
00039 
00040 }   // end of namespace
00041 
00042 #endif CSL_NULLIO_H
00043 

Generated on Fri Apr 6 20:18:12 2007 for CSL by  doxygen 1.4.5-20051010