JackComponent.h

00001 #ifndef __JACKCOMP_H__
00002 #define __JACKCOMP_H__
00003 
00004 #include <jack/jack.h>
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 #include "LibPD.h"
00008 
00009 class Jack {
00010     const char **ports;
00011     jack_port_t *input_port;
00012     jack_port_t *output_port;
00013     jack_client_t *client;
00014     jack_nframes_t nframes;
00015     jack_default_audio_sample_t *out;
00016     jack_default_audio_sample_t *in;
00017     
00018   public:
00020 
00023     int process (jack_nframes_t nframes);
00025 
00028     int execute(const char*);
00030 
00032     int activate();
00034 
00037     int connectPorts();
00039 
00041     void freePorts();
00043 
00045     int kill();
00046 };
00047 
00048 int Jack_Process_Callback(jack_nframes_t, void*);
00049 
00050 #endif
 All Classes Functions