JackIO.h

Go to the documentation of this file.
00001 //
00002 //  JackIO.h -- Driver IO object for CSL on Jack
00003 //  See the copyright notice and acknowledgment of authors in the file COPYRIGHT
00004 //
00005 
00006 #ifndef CSL_JACKIO_H
00007 #define CSL_JACKIO_H
00008 
00009 #include "CSL_Core.h"
00010 
00011 #include <jack/jack.h>
00012 
00013 namespace csl {
00014 
00015 //extern "C" int JackCallback (jack_nframes_t nframes, void *arg);
00016 
00022 class JackIO : public IO {
00023 public:             
00024     JackIO();                       
00025     JackIO(unsigned s_rate, unsigned b_size, 
00026         int in_device = 0, int out_device = 0, 
00027         unsigned in_chans = 0, unsigned out_chans = 2);
00028     virtual ~JackIO();
00029     
00030     void open() throw(CException);          
00031     void close() throw(CException);
00032     void start() throw(CException);         
00033     void stop() throw(CException);          
00034 
00035     jack_port_t * mInput_port;
00036     jack_port_t * mOutput_port;
00037     jack_client_t * mClient;
00038 };
00039 
00040 
00041 }   // end of namespace
00042 
00043 #endif CSL_JACKIO_H
00044 

Generated on Thu Sep 17 23:14:15 2009 for CSL by  doxygen 1.5.8