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

JackClient.h

Go to the documentation of this file.
00001 //
00002 // File: JackClient.h
00003 // Created by: cc <cc@sony.stanford.edu>
00004 // Created on: Sat Jul 26 13:08:21 2003
00005 //
00006 
00007 #ifndef _JACKCLIENT_H_
00008 #define _JACKCLIENT_H_
00009 
00010 #include <jack/jack.h>
00011 #include "Stk.h"
00012 #include "stdio.h"
00013 #include "stdlib.h"
00014 #include "qstring.h"
00015 
00016 class JackClient:public Stk
00017 {
00018       public:
00019         JackClient (QString name, int nChans, int nFrames);
00020          ~JackClient ();
00021         void go ();
00022         void start ();
00023         void stop ();
00024 int nChans;
00025         static void error ()
00026         {
00027         };
00028         static void error (const char *desc)
00029         {
00030                 printf ("JACK error: %s\n", desc);
00031         }
00032 
00033         static void jack_shutdown (void *arg)
00034         {
00035                 exit (1);
00036         }
00037 
00038         static int srate_callback (jack_nframes_t nframes, void *arg)
00039         {
00040                 printf ("the sample rate is now %u/sec\n", nframes);
00041                 return 0;
00042         }
00043       protected:
00044         jack_client_t * client;
00045         const char **ports;
00046 };
00047 
00048 
00049 #endif //_JACKCLIENT_H_

Generated on Thu Aug 3 16:14:47 2006 by  doxygen 1.4.4