00001
00007 #ifndef __IN_JACK_H__
00008 #define __IN_JACK_H__
00009
00010 #include <config.h>
00011 #ifdef HAVE_JACK
00012
00013 #include <pipe.h>
00014 #include <decoder.h>
00015
00016 extern "C" {
00017 #include <jack/jack.h>
00018 }
00019
00020 class MuseDecJack: public MuseDec {
00021 private:
00022
00023 IN_DATATYPE _inbuf[IN_CHUNK+2];
00024
00025 public:
00026 MuseDecJack();
00027 ~MuseDecJack();
00028
00029 int load(char *file);
00030 bool seek(float pos);
00031
00032 IN_DATATYPE *get_audio();
00033
00034 jack_client_t *client;
00035 jack_port_t *jack_in_port;
00036 jack_default_audio_sample_t *jack_in_buf;
00037 size_t sample_size;
00038
00039 Pipe *pipetta;
00040 };
00041
00042 #endif
00043 #endif