added GPL headers for common
[jackctlmmc.git] / common.h
blob8fb32a3e3a91b021854d9e4ab4db73edc7b4b22f
1 /*
2 * Control JACK transport using MMC (MIDI)
4 * Copyright (c) 2006,2007,2008 Nedko Arnaudov <nedko@arnaudov.name>
5 * Copyright (c) 2008 Alex Montgomery <apmontgomery@gmail.com>
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License as published by the Free Software
9 * Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <jack/jack.h>
21 #include <alsa/asoundlib.h>
22 #include <lash/lash.h>
24 // globals
25 extern int g_quit;
26 extern snd_seq_t* g_seq_ptr;
27 extern lash_client_t* g_lashc;
28 extern jack_client_t* g_jack_client;
30 // common functions
31 void process_lash_event(lash_event_t * event_ptr);
32 void process_lash_config(lash_config_t * config_ptr);
33 int init_alsa_sequencer(const char* appName);
34 void init_lash();
35 int init_jack(const char* appName);
36 void activate_jack();
37 void listen_loop (uint32_t frameRate, uint32_t jitterTolerance, int verbose);
38 void cleanup_globals();