ladishd: Basic recent projects functionality
[ladish.git] / gui / jack.h
blob71414833fdaf4fdbd05dc975649b50962f6dd657
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2010 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains interface to the JACK related functionality
9 **************************************************************************
11 * LADI Session Handler is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * LADI Session Handler is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
23 * or write to the Free Software Foundation, Inc.,
24 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef JACK_H__AA9BB099_1EAA_43A8_B84D_3DA221F1A1CF__INCLUDED
28 #define JACK_H__AA9BB099_1EAA_43A8_B84D_3DA221F1A1CF__INCLUDED
30 /* JACK states */
31 #define JACK_STATE_NA 0
32 #define JACK_STATE_STOPPED 1
33 #define JACK_STATE_STARTED 2
35 unsigned int get_jack_state(void);
36 void buffer_size_clear(void);
37 void init_jack_widgets(void);
38 bool init_jack(void);
39 void uninit_jack(void);
40 bool jack_xruns(void);
41 void set_xrun_progress_bar_text(const char * text);
42 void update_jack_sample_rate(void);
43 void clear_xruns_and_max_dsp(void);
45 #endif /* #ifndef JACK_H__AA9BB099_1EAA_43A8_B84D_3DA221F1A1CF__INCLUDED */