00001 00007 /* 00008 * Copyright 2010 Evan Buswell 00009 * 00010 * This file is part of Cshellsynth. 00011 * 00012 * Cshellsynth is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation, either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * Cshellsynth is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with Cshellsynth. If not, see <http://www.gnu.org/licenses/>. 00024 */ 00025 #ifndef CSHELLSYNTH_CONTROLLER_H 00026 #define CSHELLSYNTH_CONTROLLER_H 1 00027 00028 #include <jack/jack.h> 00029 #include <cshellsynth/atomic-types.h> 00030 #include <cshellsynth/jclient.h> 00031 00039 typedef struct cs_ctlr_struct { 00040 jack_client_t *client; 00041 jack_port_t *ctl_port; /* Output control port */ 00042 jack_port_t *out_port; /* Output port */ 00043 } cs_ctlr_t; 00044 00050 #define cs_ctlr_destroy(cs_ctlr) jclient_destroy((jclient_t *) (cs_ctlr)) 00051 00057 int cs_ctlr_init(cs_ctlr_t *self, const char *client_name, jack_options_t flags, char *server_name); 00058 00059 #endif
1.6.3