/[pidim]/src/pidim_common.h
ViewVC logotype

Contents of /src/pidim_common.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations)
Thu Aug 26 16:46:46 2010 UTC (9 years, 5 months ago) by ben
File MIME type: text/plain
File size: 1539 byte(s)
fixed doc install
1 /* pidim_common, part of the Pidim project.
2 * Copyright (C) 2010 Benoit Rouits
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #ifndef PIDIM_COMMON
20 #define PIDIM_COMMON
21 #include <alsa/asoundlib.h>
22
23 /* create a client handle */
24 snd_seq_t* alsa_open_client (const char* name);
25
26 /* create an input port */
27 int alsa_open_input_port(snd_seq_t *handle, const char* name);
28
29 /* create an output port */
30 int alsa_open_output_port(snd_seq_t *handle, const char* name);
31
32 /* initialize an event queue */
33 int alsa_init_queue(snd_seq_t * handle, int seq_len);
34
35 /* clear an event queue */
36 void alsa_clear_queue(snd_seq_t *handle, int queue_id);
37
38 /* get the file descriptor of the first MIDI input port */
39 #if SND_LIB_MAJOR > 0 || SND_LIB_MINOR >= 6
40 /* FIXME: this is a dirty hack form XMBC code */
41 int alsa_get_fd(snd_seq_t *handle);
42 #endif
43
44 #endif

  ViewVC Help
Powered by ViewVC 1.1.26