00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CSHELLSYNTH_FILTER_H
00030 #define CSHELLSYNTH_FILTER_H 1
00031
00032 #include <jack/jack.h>
00033 #include <cshellsynth/atomic-types.h>
00034 #include <cshellsynth/jclient.h>
00035
00043 typedef struct cs_filter_struct {
00044 jack_client_t *client;
00045 jack_port_t *in_port;
00046 atomic_float_t in;
00047 jack_port_t *out_port;
00048 } cs_filter_t;
00049
00055 #define cs_filter_destroy(cs_filter) jclient_destroy((jclient_t *) (cs_filter))
00056
00062 int cs_filter_init(cs_filter_t *self, const char *client_name, jack_options_t flags, char *server_name);
00063
00067 void cs_filter_set_in(cs_filter_t *self, float in);
00068
00069 #endif