comparison Plugins/Input/amidi-plug/i_seq.h @ 522:60c744f652f4 trunk

[svn] amidi-plug (MIDI through ALSA seq) input plugin added, brand new and completely written from scratch :)
author giacomo
date Thu, 26 Jan 2006 18:43:59 -0800
parents
children 8efa4b799c19
comparison
equal deleted inserted replaced
521:54cd4bac0c0a 522:60c744f652f4
1 /*
2 *
3 * Author: Giacomo Lozito <james@develia.org>, (C) 2005-2006
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
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 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20
21 #ifndef _I_SEQ_H
22 #define _I_SEQ_H 1
23
24 #include "i_common.h"
25 #include <alsa/asoundlib.h>
26
27 typedef struct
28 {
29 snd_seq_t * seq;
30 gint client_port;
31 gint queue;
32
33 snd_seq_addr_t * dest_port;
34 gint dest_port_num;
35
36 snd_seq_queue_tempo_t * queue_tempo;
37 }
38 sequencer_client_t;
39
40 extern sequencer_client_t sc;
41
42 gint i_seq_on( gshort , gchar * );
43 gint i_seq_off( void );
44 gint i_seq_open( void );
45 gint i_seq_close( void );
46 gint i_seq_port_create( void );
47 gint i_seq_port_connect( void );
48 gint i_seq_port_disconnect( void );
49 gint i_seq_queue_create( void );
50 gint i_seq_queue_free( void );
51 gint i_seq_queue_set_tempo( gint , gint );
52 gint i_seq_mixer_set_volume( gint , gint , gchar * , gchar * , gint );
53 gint i_seq_port_wparse( gchar * );
54 GSList * i_seq_port_get_list( void );
55 GSList * i_seq_card_get_list( void );
56 GSList * i_seq_mixctl_get_list( gint );
57 void i_seq_port_free_list( GSList * );
58 void i_seq_card_free_list( GSList * );
59 void i_seq_mixctl_free_list( GSList * );
60
61 #endif /* !_I_SEQ_H */