1 /****************************************************************************
6 ****************************************************************************/
8 #define SND_SEQ_OPEN_OUT (O_WRONLY)
9 #define SND_SEQ_OPEN_IN (O_RDONLY)
10 #define SND_SEQ_OPEN (O_RDWR)
16 typedef struct snd_seq snd_seq_t;
18 int snd_seq_open(snd_seq_t **handle, int mode);
19 int snd_seq_close(snd_seq_t *handle);
20 int snd_seq_file_descriptor(snd_seq_t *handle);
21 int snd_seq_block_mode(snd_seq_t *handle, int enable);
22 int snd_seq_client_id(snd_seq_t *handle);
23 int snd_seq_system_info(snd_seq_t *handle, snd_seq_system_info_t *info);
24 int snd_seq_get_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
25 int snd_seq_get_any_client_info(snd_seq_t *handle, int client, snd_seq_client_info_t *info);
26 int snd_seq_set_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
27 int snd_seq_create_port(snd_seq_t *handle, snd_seq_port_info_t *info);
28 int snd_seq_delete_port(snd_seq_t *handle, snd_seq_port_info_t *info);
29 int snd_seq_get_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
30 int snd_seq_get_any_port_info(snd_seq_t *handle, int client, int port, snd_seq_port_info_t *info);
31 int snd_seq_set_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
32 int snd_seq_get_port_subscription(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
33 int snd_seq_subscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
34 int snd_seq_unsubscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
35 int snd_seq_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subs_t * subs);
36 int snd_seq_get_queue_status(snd_seq_t *handle, int q, snd_seq_queue_status_t *status);
37 int snd_seq_get_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
38 int snd_seq_set_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
39 int snd_seq_get_queue_owner(snd_seq_t *handle, int q, snd_seq_queue_owner_t *owner);
40 int snd_seq_set_queue_owner(snd_seq_t *handle, int q, snd_seq_queue_owner_t *owner);
41 int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
42 int snd_seq_set_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
43 int snd_seq_get_queue_sync(snd_seq_t *handle, int q, snd_seq_queue_sync_t *sync);
44 int snd_seq_set_queue_sync(snd_seq_t *handle, int q, snd_seq_queue_sync_t *sync);
45 int snd_seq_get_queue_client(snd_seq_t *handle, int q, snd_seq_queue_client_t *queue);
46 int snd_seq_set_queue_client(snd_seq_t *handle, int q, snd_seq_queue_client_t *queue);
47 int snd_seq_alloc_named_queue(snd_seq_t *seq, char *name);
48 int snd_seq_alloc_queue(snd_seq_t *handle);
49 int snd_seq_free_queue(snd_seq_t *handle, int q);
50 int snd_seq_get_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
51 int snd_seq_set_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
52 int snd_seq_get_named_queue(snd_seq_t *seq, char *name);
53 int snd_seq_get_client_pool(snd_seq_t *handle, snd_seq_client_pool_t * info);
54 int snd_seq_set_client_pool(snd_seq_t *handle, snd_seq_client_pool_t * info);
55 int snd_seq_query_next_client(snd_seq_t *handle, snd_seq_client_info_t * info);
56 int snd_seq_query_next_port(snd_seq_t *handle, snd_seq_port_info_t * info);
59 snd_seq_event_t *snd_seq_create_event(void);
60 int snd_seq_free_event(snd_seq_event_t *ev);
61 int snd_seq_event_length(snd_seq_event_t *ev);
62 int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev);
63 int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev);
64 int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer);
65 int snd_seq_event_input_selective(snd_seq_t *seq, snd_seq_event_t **ev, int type, int blocking);
66 int snd_seq_flush_output(snd_seq_t *handle);
67 int snd_seq_event_output_pending(snd_seq_t *seq);
68 int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev);
69 int snd_seq_drain_output(snd_seq_t *handle);
70 int snd_seq_drain_output_buffer(snd_seq_t *handle);
71 int snd_seq_drain_input(snd_seq_t *handle);
72 int snd_seq_drain_input_buffer(snd_seq_t *handle);
73 int snd_seq_remove_events(snd_seq_t *handle, snd_seq_remove_events_t *info);
75 void snd_seq_set_bit(int nr, void *array);
76 int snd_seq_change_bit(int nr, void *array);
77 int snd_seq_get_bit(int nr, void *array);