00001
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CSHELLSYNTH_PAN_H
00028 #define CSHELLSYNTH_PAN_H 1
00029
00030 #include <jack/jack.h>
00031 #include <cshellsynth/atomic-types.h>
00032 #include <cshellsynth/jclient.h>
00033
00041 typedef struct cs_pan_struct {
00042 jack_client_t *client;
00043 jack_port_t *in_port;
00044 jack_port_t *outL_port;
00045 jack_port_t *outR_port;
00046 jack_port_t *pan_port;
00047 atomic_float_t pan;
00048 } cs_pan_t;
00049
00055 #define cs_pan_destroy(cs_pan) jclient_destroy((jclient_t *) (cs_pan))
00056
00062 int cs_pan_init(cs_pan_t *self, const char *client_name, jack_options_t flags, char *server_name);
00063
00069 void cs_pan_set_pan(cs_pan_t *self, float pan);
00070
00071 #endif