00001
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef CSHELLSYNTH_COT_H
00039 #define CSHELLSYNTH_COT_H 1
00040
00041 #include <jack/jack.h>
00042 #include <cshellsynth/atomic-types.h>
00043 #include <cshellsynth/synth.h>
00044
00052 typedef struct cs_cot_struct {
00053 jack_client_t *client;
00054 jack_port_t *freq_port;
00055 atomic_float_t freq;
00056 jack_port_t *out_port;
00057 atomic_float_t amp;
00058 atomic_float_t offset;
00059 double t;
00060 } cs_cot_t;
00061
00067 #define cs_cot_destroy(cs_cot) cs_synth_destroy((cs_synth_t *) (cs_cot))
00068
00074 int cs_cot_init(cs_cot_t *self, const char *client_name, jack_options_t flags, char *server_name);
00075
00079 #define cs_cot_set_freq(cs_cot, freq) cs_synth_set_freq((cs_synth_t *) (cs_cot), (freq))
00080
00084 #define cs_cot_set_offset(cs_cot, offset) cs_synth_set_offset((cs_synth_t *) (cs_cot), (offset))
00085
00089 #define cs_cot_set_amp(cs_cot, amp) cs_synth_set_amp((cs_synth_t *) (cs_cot), (amp))
00090
00091 #endif