OSDN Git Service

Initial version...
[android-x86/external-alsa-lib.git] / include / seq.h
1 /****************************************************************************
2  *                                                                          *
3  *                                seq.h                                     *
4  *                              Sequencer                                   *
5  *                                                                          *
6  ****************************************************************************/
7
8 #define SND_SEQ_OPEN_OUT        (O_WRONLY)
9 #define SND_SEQ_OPEN_IN         (O_RDONLY)
10 #define SND_SEQ_OPEN            (O_RDWR)
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 int snd_seq_open(void **handle, int mode);
17 int snd_seq_close(void *handle);
18 int snd_seq_file_descriptor(void *handle);
19 int snd_seq_block_mode(void *handle, int enable);
20 int snd_seq_client_id(void *handle);
21 int snd_seq_system_info(void *handle, snd_seq_system_info_t *info);
22 int snd_seq_get_client_info(void *handle, snd_seq_client_info_t *info);
23 int snd_seq_get_any_client_info(void *handle, int client, snd_seq_client_info_t *info);
24 int snd_seq_set_client_info(void *handle, snd_seq_client_info_t *info);
25 int snd_seq_create_port(void *handle, snd_seq_port_info_t *info);
26 int snd_seq_delete_port(void *handle, snd_seq_port_info_t *info);
27 int snd_seq_get_port_info(void *handle, int port, snd_seq_port_info_t *info);
28 int snd_seq_get_any_port_info(void *handle, int client, int port, snd_seq_port_info_t *info);
29 int snd_seq_set_port_info(void *handle, int port, snd_seq_port_info_t *info);
30 int snd_seq_subscribe_port(void *handle, snd_seq_port_subscribe_t *sub);
31 int snd_seq_unsubscribe_port(void *handle, snd_seq_port_subscribe_t *sub);
32 int snd_seq_get_queue_info(void *handle, int q, snd_seq_queue_info_t *queue);
33 int snd_seq_set_queue_info(void *handle, int q, snd_seq_queue_info_t *queue);
34 int snd_seq_get_queue_client(void *handle, int q, snd_seq_queue_client_t *queue);
35 int snd_seq_set_queue_client(void *handle, int q, snd_seq_queue_client_t *queue);
36 int snd_seq_alloc_queue(void *handle, snd_seq_queue_info_t *queue);
37 int snd_seq_free_queue(void *handle, int q);
38 /* event routines */
39 snd_seq_event_t *snd_seq_create_event(void);
40 int snd_seq_free_event(snd_seq_event_t *ev);
41 int snd_seq_event_length(snd_seq_event_t *ev);
42 int snd_seq_event_output(void *handle, snd_seq_event_t *ev);
43 int snd_seq_event_input(void *handle, snd_seq_event_t **ev);
44 int snd_seq_flush_output(void *handle);
45 int snd_seq_drain_output(void *handle);
46 int snd_seq_drain_input(void *handle);
47 /* misc */
48 void snd_seq_set_bit(int nr, void *array);
49 int snd_seq_change_bit(int nr, void *array);
50 int snd_seq_get_bit(int nr, void *array);
51
52 #ifdef __cplusplus
53 }
54 #endif
55