ALSA project - the C library reference: /tmp/work/src/alsa-lib-1.2.12/include/seq.h Source File

ALSA project - the C library reference

Loading...
Searching...
No Matches
seq.h
Go to the documentation of this file.
1
9/*
10 * Application interface library for the ALSA driver
11 *
12 *
13 * This library is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as
15 * published by the Free Software Foundation; either version 2.1 of
16 * the License, or (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 *
27 */
28
29#ifndef __ALSA_SEQ_H
30#define __ALSA_SEQ_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
44#define SND_SEQ_DLSYM_VERSION _dlsym_seq_001
45
47 typedef struct _snd_seq snd_seq_t;
48
52#define SND_SEQ_OPEN_OUTPUT 1
53#define SND_SEQ_OPEN_INPUT 2
54#define SND_SEQ_OPEN_DUPLEX (SND_SEQ_OPEN_OUTPUT|SND_SEQ_OPEN_INPUT)
59#define SND_SEQ_NONBLOCK 0x0001
62 typedef enum _snd_seq_type {
63 SND_SEQ_TYPE_HW,
64 SND_SEQ_TYPE_SHM,
65 SND_SEQ_TYPE_INET
66} snd_seq_type_t;
67
69#define SND_SEQ_ADDRESS_UNKNOWN 253
70#define SND_SEQ_ADDRESS_SUBSCRIBERS 254
71#define SND_SEQ_ADDRESS_BROADCAST 255
74#define SND_SEQ_CLIENT_SYSTEM 0
76/*
77 */
78int snd_seq_open(snd_seq_t **handle, const char *name, int streams, int mode);
79int snd_seq_open_lconf(snd_seq_t **handle, const char *name, int streams, int mode, snd_config_t *lconf);
80const char *snd_seq_name(snd_seq_t *seq);
81 snd_seq_type_t snd_seq_type(snd_seq_t *seq);
82int snd_seq_close(snd_seq_t *handle);
83int snd_seq_poll_descriptors_count(snd_seq_t *handle, short events);
84int snd_seq_poll_descriptors(snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events);
85int snd_seq_poll_descriptors_revents(snd_seq_t *seq, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
86int snd_seq_nonblock(snd_seq_t *handle, int nonblock);
87int snd_seq_client_id(snd_seq_t *handle);
88
89size_t snd_seq_get_output_buffer_size(snd_seq_t *handle);
90size_t snd_seq_get_input_buffer_size(snd_seq_t *handle);
91int snd_seq_set_output_buffer_size(snd_seq_t *handle, size_t size);
92int snd_seq_set_input_buffer_size(snd_seq_t *handle, size_t size);
93
95 typedef struct _snd_seq_system_info snd_seq_system_info_t;
96
97size_t snd_seq_system_info_sizeof(void);
99#define snd_seq_system_info_alloca(ptr) \
100 __snd_alloca(ptr, snd_seq_system_info)
101int snd_seq_system_info_malloc(snd_seq_system_info_t **ptr);
102void snd_seq_system_info_free(snd_seq_system_info_t *ptr);
103void snd_seq_system_info_copy(snd_seq_system_info_t *dst, const snd_seq_system_info_t *src);
104
105int snd_seq_system_info_get_queues(const snd_seq_system_info_t *info);
106int snd_seq_system_info_get_clients(const snd_seq_system_info_t *info);
107int snd_seq_system_info_get_ports(const snd_seq_system_info_t *info);
108int snd_seq_system_info_get_channels(const snd_seq_system_info_t *info);
109int snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info);
110int snd_seq_system_info_get_cur_queues(const snd_seq_system_info_t *info);
111
112int snd_seq_system_info(snd_seq_t *handle, snd_seq_system_info_t *info);
113
125 typedef struct _snd_seq_client_info snd_seq_client_info_t;
126
128 typedef enum snd_seq_client_type {
129 SND_SEQ_USER_CLIENT = 1,
130 SND_SEQ_KERNEL_CLIENT = 2
131} snd_seq_client_type_t;
132
134enum {
135 SND_SEQ_CLIENT_LEGACY_MIDI = 0,
136 SND_SEQ_CLIENT_UMP_MIDI_1_0 = 1,
137 SND_SEQ_CLIENT_UMP_MIDI_2_0 = 2
138};
139
140size_t snd_seq_client_info_sizeof(void);
142#define snd_seq_client_info_alloca(ptr) \
143 __snd_alloca(ptr, snd_seq_client_info)
144int snd_seq_client_info_malloc(snd_seq_client_info_t **ptr);
145void snd_seq_client_info_free(snd_seq_client_info_t *ptr);
146void snd_seq_client_info_copy(snd_seq_client_info_t *dst, const snd_seq_client_info_t *src);
147
148int snd_seq_client_info_get_client(const snd_seq_client_info_t *info);
149 snd_seq_client_type_t snd_seq_client_info_get_type(const snd_seq_client_info_t *info);
150const char *snd_seq_client_info_get_name(snd_seq_client_info_t *info);
151int snd_seq_client_info_get_broadcast_filter(const snd_seq_client_info_t *info);
152int snd_seq_client_info_get_error_bounce(const snd_seq_client_info_t *info);
153int snd_seq_client_info_get_card(const snd_seq_client_info_t *info);
154int snd_seq_client_info_get_pid(const snd_seq_client_info_t *info);
155const unsigned char *snd_seq_client_info_get_event_filter(const snd_seq_client_info_t *info);
156int snd_seq_client_info_get_num_ports(const snd_seq_client_info_t *info);
157int snd_seq_client_info_get_event_lost(const snd_seq_client_info_t *info);
158
159int snd_seq_client_info_get_midi_version(const snd_seq_client_info_t *info);
160int snd_seq_client_info_get_ump_group_enabled(const snd_seq_client_info_t *info,
161 int group);
162int snd_seq_client_info_get_ump_groupless_enabled(const snd_seq_client_info_t *info);
163int snd_seq_client_info_get_ump_conversion(const snd_seq_client_info_t *info);
164void snd_seq_client_info_set_client(snd_seq_client_info_t *info, int client);
165void snd_seq_client_info_set_name(snd_seq_client_info_t *info, const char *name);
166void snd_seq_client_info_set_broadcast_filter(snd_seq_client_info_t *info, int val);
167void snd_seq_client_info_set_error_bounce(snd_seq_client_info_t *info, int val);
168void snd_seq_client_info_set_event_filter(snd_seq_client_info_t *info, unsigned char *filter);
169void snd_seq_client_info_set_midi_version(snd_seq_client_info_t *info, int midi_version);
170void snd_seq_client_info_set_ump_group_enabled(snd_seq_client_info_t *info,
171 int group, int enable);
172void snd_seq_client_info_set_ump_groupless_enabled(snd_seq_client_info_t *info,
173 int enable);
174void snd_seq_client_info_set_ump_conversion(snd_seq_client_info_t *info, int enable);
175
176void snd_seq_client_info_event_filter_clear(snd_seq_client_info_t *info);
177void snd_seq_client_info_event_filter_add(snd_seq_client_info_t *info, int event_type);
178void snd_seq_client_info_event_filter_del(snd_seq_client_info_t *info, int event_type);
179int snd_seq_client_info_event_filter_check(snd_seq_client_info_t *info, int event_type);
180
181int snd_seq_get_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
182int snd_seq_get_any_client_info(snd_seq_t *handle, int client, snd_seq_client_info_t *info);
183int snd_seq_set_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
184int snd_seq_query_next_client(snd_seq_t *handle, snd_seq_client_info_t *info);
185
186int snd_seq_get_ump_endpoint_info(snd_seq_t *seq, int client, void *info);
187int snd_seq_get_ump_block_info(snd_seq_t *seq, int client, int blk, void *info);
188int snd_seq_set_ump_endpoint_info(snd_seq_t *seq, const void *info);
189int snd_seq_set_ump_block_info(snd_seq_t *seq, int blk, const void *info);
190
191/*
192 */
193
195 typedef struct _snd_seq_client_pool snd_seq_client_pool_t;
196
197size_t snd_seq_client_pool_sizeof(void);
199#define snd_seq_client_pool_alloca(ptr) \
200 __snd_alloca(ptr, snd_seq_client_pool)
201int snd_seq_client_pool_malloc(snd_seq_client_pool_t **ptr);
202void snd_seq_client_pool_free(snd_seq_client_pool_t *ptr);
203void snd_seq_client_pool_copy(snd_seq_client_pool_t *dst, const snd_seq_client_pool_t *src);
204
205int snd_seq_client_pool_get_client(const snd_seq_client_pool_t *info);
206size_t snd_seq_client_pool_get_output_pool(const snd_seq_client_pool_t *info);
207size_t snd_seq_client_pool_get_input_pool(const snd_seq_client_pool_t *info);
208size_t snd_seq_client_pool_get_output_room(const snd_seq_client_pool_t *info);
209size_t snd_seq_client_pool_get_output_free(const snd_seq_client_pool_t *info);
210size_t snd_seq_client_pool_get_input_free(const snd_seq_client_pool_t *info);
211void snd_seq_client_pool_set_output_pool(snd_seq_client_pool_t *info, size_t size);
212void snd_seq_client_pool_set_input_pool(snd_seq_client_pool_t *info, size_t size);
213void snd_seq_client_pool_set_output_room(snd_seq_client_pool_t *info, size_t size);
214
215int snd_seq_get_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info);
216int snd_seq_set_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info);
217
218
230 typedef struct _snd_seq_port_info snd_seq_port_info_t;
231
233#define SND_SEQ_PORT_SYSTEM_TIMER 0
234#define SND_SEQ_PORT_SYSTEM_ANNOUNCE 1
237#define SND_SEQ_PORT_CAP_READ (1<<0)
238#define SND_SEQ_PORT_CAP_WRITE (1<<1)
240#define SND_SEQ_PORT_CAP_SYNC_READ (1<<2)
241#define SND_SEQ_PORT_CAP_SYNC_WRITE (1<<3)
243#define SND_SEQ_PORT_CAP_DUPLEX (1<<4)
245#define SND_SEQ_PORT_CAP_SUBS_READ (1<<5)
246#define SND_SEQ_PORT_CAP_SUBS_WRITE (1<<6)
247#define SND_SEQ_PORT_CAP_NO_EXPORT (1<<7)
248#define SND_SEQ_PORT_CAP_INACTIVE (1<<8)
249#define SND_SEQ_PORT_CAP_UMP_ENDPOINT (1<<9)
252#define SND_SEQ_PORT_DIR_UNKNOWN 0
253#define SND_SEQ_PORT_DIR_INPUT 1
254#define SND_SEQ_PORT_DIR_OUTPUT 2
255#define SND_SEQ_PORT_DIR_BIDIRECTION 3
257/* port type */
259#define SND_SEQ_PORT_TYPE_SPECIFIC (1<<0)
261#define SND_SEQ_PORT_TYPE_MIDI_GENERIC (1<<1)
263#define SND_SEQ_PORT_TYPE_MIDI_GM (1<<2)
265#define SND_SEQ_PORT_TYPE_MIDI_GS (1<<3)
267#define SND_SEQ_PORT_TYPE_MIDI_XG (1<<4)
269#define SND_SEQ_PORT_TYPE_MIDI_MT32 (1<<5)
271#define SND_SEQ_PORT_TYPE_MIDI_GM2 (1<<6)
273#define SND_SEQ_PORT_TYPE_MIDI_UMP (1<<7)
276#define SND_SEQ_PORT_TYPE_SYNTH (1<<10)
279#define SND_SEQ_PORT_TYPE_DIRECT_SAMPLE (1<<11)
282#define SND_SEQ_PORT_TYPE_SAMPLE (1<<12)
284#define SND_SEQ_PORT_TYPE_HARDWARE (1<<16)
286#define SND_SEQ_PORT_TYPE_SOFTWARE (1<<17)
288#define SND_SEQ_PORT_TYPE_SYNTHESIZER (1<<18)
291#define SND_SEQ_PORT_TYPE_PORT (1<<19)
293#define SND_SEQ_PORT_TYPE_APPLICATION (1<<20)
294
295
296size_t snd_seq_port_info_sizeof(void);
298#define snd_seq_port_info_alloca(ptr) \
299 __snd_alloca(ptr, snd_seq_port_info)
300int snd_seq_port_info_malloc(snd_seq_port_info_t **ptr);
301void snd_seq_port_info_free(snd_seq_port_info_t *ptr);
302void snd_seq_port_info_copy(snd_seq_port_info_t *dst, const snd_seq_port_info_t *src);
303
304int snd_seq_port_info_get_client(const snd_seq_port_info_t *info);
305int snd_seq_port_info_get_port(const snd_seq_port_info_t *info);
306const snd_seq_addr_t *snd_seq_port_info_get_addr(const snd_seq_port_info_t *info);
307const char *snd_seq_port_info_get_name(const snd_seq_port_info_t *info);
308unsigned int snd_seq_port_info_get_capability(const snd_seq_port_info_t *info);
309unsigned int snd_seq_port_info_get_type(const snd_seq_port_info_t *info);
310int snd_seq_port_info_get_midi_channels(const snd_seq_port_info_t *info);
311int snd_seq_port_info_get_midi_voices(const snd_seq_port_info_t *info);
312int snd_seq_port_info_get_synth_voices(const snd_seq_port_info_t *info);
313int snd_seq_port_info_get_read_use(const snd_seq_port_info_t *info);
314int snd_seq_port_info_get_write_use(const snd_seq_port_info_t *info);
315int snd_seq_port_info_get_port_specified(const snd_seq_port_info_t *info);
316int snd_seq_port_info_get_timestamping(const snd_seq_port_info_t *info);
317int snd_seq_port_info_get_timestamp_real(const snd_seq_port_info_t *info);
318int snd_seq_port_info_get_timestamp_queue(const snd_seq_port_info_t *info);
319int snd_seq_port_info_get_direction(const snd_seq_port_info_t *info);
320int snd_seq_port_info_get_ump_group(const snd_seq_port_info_t *info);
321
322void snd_seq_port_info_set_client(snd_seq_port_info_t *info, int client);
323void snd_seq_port_info_set_port(snd_seq_port_info_t *info, int port);
324void snd_seq_port_info_set_addr(snd_seq_port_info_t *info, const snd_seq_addr_t *addr);
325void snd_seq_port_info_set_name(snd_seq_port_info_t *info, const char *name);
326void snd_seq_port_info_set_capability(snd_seq_port_info_t *info, unsigned int capability);
327void snd_seq_port_info_set_type(snd_seq_port_info_t *info, unsigned int type);
328void snd_seq_port_info_set_midi_channels(snd_seq_port_info_t *info, int channels);
329void snd_seq_port_info_set_midi_voices(snd_seq_port_info_t *info, int voices);
330void snd_seq_port_info_set_synth_voices(snd_seq_port_info_t *info, int voices);
331void snd_seq_port_info_set_port_specified(snd_seq_port_info_t *info, int val);
332void snd_seq_port_info_set_timestamping(snd_seq_port_info_t *info, int enable);
333void snd_seq_port_info_set_timestamp_real(snd_seq_port_info_t *info, int realtime);
334void snd_seq_port_info_set_timestamp_queue(snd_seq_port_info_t *info, int queue);
335void snd_seq_port_info_set_direction(snd_seq_port_info_t *info, int direction);
336void snd_seq_port_info_set_ump_group(snd_seq_port_info_t *info, int ump_group);
337
338int snd_seq_create_port(snd_seq_t *handle, snd_seq_port_info_t *info);
339int snd_seq_delete_port(snd_seq_t *handle, int port);
340int snd_seq_get_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
341int snd_seq_get_any_port_info(snd_seq_t *handle, int client, int port, snd_seq_port_info_t *info);
342int snd_seq_set_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
343int snd_seq_query_next_port(snd_seq_t *handle, snd_seq_port_info_t *info);
344
356 typedef struct _snd_seq_port_subscribe snd_seq_port_subscribe_t;
357
358size_t snd_seq_port_subscribe_sizeof(void);
360#define snd_seq_port_subscribe_alloca(ptr) \
361 __snd_alloca(ptr, snd_seq_port_subscribe)
362int snd_seq_port_subscribe_malloc(snd_seq_port_subscribe_t **ptr);
363void snd_seq_port_subscribe_free(snd_seq_port_subscribe_t *ptr);
364void snd_seq_port_subscribe_copy(snd_seq_port_subscribe_t *dst, const snd_seq_port_subscribe_t *src);
365
366const snd_seq_addr_t *snd_seq_port_subscribe_get_sender(const snd_seq_port_subscribe_t *info);
367const snd_seq_addr_t *snd_seq_port_subscribe_get_dest(const snd_seq_port_subscribe_t *info);
368int snd_seq_port_subscribe_get_queue(const snd_seq_port_subscribe_t *info);
369int snd_seq_port_subscribe_get_exclusive(const snd_seq_port_subscribe_t *info);
370int snd_seq_port_subscribe_get_time_update(const snd_seq_port_subscribe_t *info);
371int snd_seq_port_subscribe_get_time_real(const snd_seq_port_subscribe_t *info);
372
373void snd_seq_port_subscribe_set_sender(snd_seq_port_subscribe_t *info, const snd_seq_addr_t *addr);
374void snd_seq_port_subscribe_set_dest(snd_seq_port_subscribe_t *info, const snd_seq_addr_t *addr);
375void snd_seq_port_subscribe_set_queue(snd_seq_port_subscribe_t *info, int q);
376void snd_seq_port_subscribe_set_exclusive(snd_seq_port_subscribe_t *info, int val);
377void snd_seq_port_subscribe_set_time_update(snd_seq_port_subscribe_t *info, int val);
378void snd_seq_port_subscribe_set_time_real(snd_seq_port_subscribe_t *info, int val);
379
380int snd_seq_get_port_subscription(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
381int snd_seq_subscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
382int snd_seq_unsubscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
383
384/*
385 */
386
388 typedef struct _snd_seq_query_subscribe snd_seq_query_subscribe_t;
389
391 typedef enum {
392 SND_SEQ_QUERY_SUBS_READ,
393 SND_SEQ_QUERY_SUBS_WRITE
394} snd_seq_query_subs_type_t;
395
396size_t snd_seq_query_subscribe_sizeof(void);
398#define snd_seq_query_subscribe_alloca(ptr) \
399 __snd_alloca(ptr, snd_seq_query_subscribe)
400int snd_seq_query_subscribe_malloc(snd_seq_query_subscribe_t **ptr);
401void snd_seq_query_subscribe_free(snd_seq_query_subscribe_t *ptr);
402void snd_seq_query_subscribe_copy(snd_seq_query_subscribe_t *dst, const snd_seq_query_subscribe_t *src);
403
404int snd_seq_query_subscribe_get_client(const snd_seq_query_subscribe_t *info);
405int snd_seq_query_subscribe_get_port(const snd_seq_query_subscribe_t *info);
406const snd_seq_addr_t *snd_seq_query_subscribe_get_root(const snd_seq_query_subscribe_t *info);
407 snd_seq_query_subs_type_t snd_seq_query_subscribe_get_type(const snd_seq_query_subscribe_t *info);
408int snd_seq_query_subscribe_get_index(const snd_seq_query_subscribe_t *info);
409int snd_seq_query_subscribe_get_num_subs(const snd_seq_query_subscribe_t *info);
410const snd_seq_addr_t *snd_seq_query_subscribe_get_addr(const snd_seq_query_subscribe_t *info);
411int snd_seq_query_subscribe_get_queue(const snd_seq_query_subscribe_t *info);
412int snd_seq_query_subscribe_get_exclusive(const snd_seq_query_subscribe_t *info);
413int snd_seq_query_subscribe_get_time_update(const snd_seq_query_subscribe_t *info);
414int snd_seq_query_subscribe_get_time_real(const snd_seq_query_subscribe_t *info);
415
416void snd_seq_query_subscribe_set_client(snd_seq_query_subscribe_t *info, int client);
417void snd_seq_query_subscribe_set_port(snd_seq_query_subscribe_t *info, int port);
418void snd_seq_query_subscribe_set_root(snd_seq_query_subscribe_t *info, const snd_seq_addr_t *addr);
419void snd_seq_query_subscribe_set_type(snd_seq_query_subscribe_t *info, snd_seq_query_subs_type_t type);
420void snd_seq_query_subscribe_set_index(snd_seq_query_subscribe_t *info, int _index);
421
422int snd_seq_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subscribe_t * subs);
423
435 typedef struct _snd_seq_queue_info snd_seq_queue_info_t;
437 typedef struct _snd_seq_queue_status snd_seq_queue_status_t;
439 typedef struct _snd_seq_queue_tempo snd_seq_queue_tempo_t;
441 typedef struct _snd_seq_queue_timer snd_seq_queue_timer_t;
442
444#define SND_SEQ_QUEUE_DIRECT 253
446size_t snd_seq_queue_info_sizeof(void);
448#define snd_seq_queue_info_alloca(ptr) \
449 __snd_alloca(ptr, snd_seq_queue_info)
450int snd_seq_queue_info_malloc(snd_seq_queue_info_t **ptr);
451void snd_seq_queue_info_free(snd_seq_queue_info_t *ptr);
452void snd_seq_queue_info_copy(snd_seq_queue_info_t *dst, const snd_seq_queue_info_t *src);
453
454int snd_seq_queue_info_get_queue(const snd_seq_queue_info_t *info);
455const char *snd_seq_queue_info_get_name(const snd_seq_queue_info_t *info);
456int snd_seq_queue_info_get_owner(const snd_seq_queue_info_t *info);
457int snd_seq_queue_info_get_locked(const snd_seq_queue_info_t *info);
458unsigned int snd_seq_queue_info_get_flags(const snd_seq_queue_info_t *info);
459
460void snd_seq_queue_info_set_name(snd_seq_queue_info_t *info, const char *name);
461void snd_seq_queue_info_set_owner(snd_seq_queue_info_t *info, int owner);
462void snd_seq_queue_info_set_locked(snd_seq_queue_info_t *info, int locked);
463void snd_seq_queue_info_set_flags(snd_seq_queue_info_t *info, unsigned int flags);
464
465int snd_seq_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info);
466int snd_seq_alloc_named_queue(snd_seq_t *seq, const char *name);
467int snd_seq_alloc_queue(snd_seq_t *handle);
468int snd_seq_free_queue(snd_seq_t *handle, int q);
469int snd_seq_get_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
470int snd_seq_set_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
471int snd_seq_query_named_queue(snd_seq_t *seq, const char *name);
472
473int snd_seq_get_queue_usage(snd_seq_t *handle, int q);
474int snd_seq_set_queue_usage(snd_seq_t *handle, int q, int used);
475
476/*
477 */
478size_t snd_seq_queue_status_sizeof(void);
480#define snd_seq_queue_status_alloca(ptr) \
481 __snd_alloca(ptr, snd_seq_queue_status)
482int snd_seq_queue_status_malloc(snd_seq_queue_status_t **ptr);
483void snd_seq_queue_status_free(snd_seq_queue_status_t *ptr);
484void snd_seq_queue_status_copy(snd_seq_queue_status_t *dst, const snd_seq_queue_status_t *src);
485
486int snd_seq_queue_status_get_queue(const snd_seq_queue_status_t *info);
487int snd_seq_queue_status_get_events(const snd_seq_queue_status_t *info);
488 snd_seq_tick_time_t snd_seq_queue_status_get_tick_time(const snd_seq_queue_status_t *info);
489const snd_seq_real_time_t *snd_seq_queue_status_get_real_time(const snd_seq_queue_status_t *info);
490unsigned int snd_seq_queue_status_get_status(const snd_seq_queue_status_t *info);
491
492int snd_seq_get_queue_status(snd_seq_t *handle, int q, snd_seq_queue_status_t *status);
493
494/*
495 */
496size_t snd_seq_queue_tempo_sizeof(void);
498#define snd_seq_queue_tempo_alloca(ptr) \
499 __snd_alloca(ptr, snd_seq_queue_tempo)
500int snd_seq_queue_tempo_malloc(snd_seq_queue_tempo_t **ptr);
501void snd_seq_queue_tempo_free(snd_seq_queue_tempo_t *ptr);
502void snd_seq_queue_tempo_copy(snd_seq_queue_tempo_t *dst, const snd_seq_queue_tempo_t *src);
503
504int snd_seq_queue_tempo_get_queue(const snd_seq_queue_tempo_t *info);
505unsigned int snd_seq_queue_tempo_get_tempo(const snd_seq_queue_tempo_t *info);
506int snd_seq_queue_tempo_get_ppq(const snd_seq_queue_tempo_t *info);
507unsigned int snd_seq_queue_tempo_get_skew(const snd_seq_queue_tempo_t *info);
508unsigned int snd_seq_queue_tempo_get_skew_base(const snd_seq_queue_tempo_t *info);
509void snd_seq_queue_tempo_set_tempo(snd_seq_queue_tempo_t *info, unsigned int tempo);
510void snd_seq_queue_tempo_set_ppq(snd_seq_queue_tempo_t *info, int ppq);
511void snd_seq_queue_tempo_set_skew(snd_seq_queue_tempo_t *info, unsigned int skew);
512void snd_seq_queue_tempo_set_skew_base(snd_seq_queue_tempo_t *info, unsigned int base);
513
514int snd_seq_get_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
515int snd_seq_set_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
516
517/*
518 */
519
521 typedef enum {
522 SND_SEQ_TIMER_ALSA = 0, /* ALSA timer */
523 SND_SEQ_TIMER_MIDI_CLOCK = 1, /* Midi Clock (CLOCK event) */
524 SND_SEQ_TIMER_MIDI_TICK = 2 /* Midi Timer Tick (TICK event */
525} snd_seq_queue_timer_type_t;
526
527size_t snd_seq_queue_timer_sizeof(void);
529#define snd_seq_queue_timer_alloca(ptr) \
530 __snd_alloca(ptr, snd_seq_queue_timer)
531int snd_seq_queue_timer_malloc(snd_seq_queue_timer_t **ptr);
532void snd_seq_queue_timer_free(snd_seq_queue_timer_t *ptr);
533void snd_seq_queue_timer_copy(snd_seq_queue_timer_t *dst, const snd_seq_queue_timer_t *src);
534
535int snd_seq_queue_timer_get_queue(const snd_seq_queue_timer_t *info);
536 snd_seq_queue_timer_type_t snd_seq_queue_timer_get_type(const snd_seq_queue_timer_t *info);
537const snd_timer_id_t *snd_seq_queue_timer_get_id(const snd_seq_queue_timer_t *info);
538unsigned int snd_seq_queue_timer_get_resolution(const snd_seq_queue_timer_t *info);
539
540void snd_seq_queue_timer_set_type(snd_seq_queue_timer_t *info, snd_seq_queue_timer_type_t type);
541void snd_seq_queue_timer_set_id(snd_seq_queue_timer_t *info, const snd_timer_id_t *id);
542void snd_seq_queue_timer_set_resolution(snd_seq_queue_timer_t *info, unsigned int resolution);
543
544int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
545int snd_seq_set_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
546
556int snd_seq_free_event(snd_seq_event_t *ev);
557ssize_t snd_seq_event_length(snd_seq_event_t *ev);
558int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev);
559int snd_seq_event_output_buffer(snd_seq_t *handle, snd_seq_event_t *ev);
560int snd_seq_event_output_direct(snd_seq_t *handle, snd_seq_event_t *ev);
561int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev);
562int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer);
563int snd_seq_drain_output(snd_seq_t *handle);
564int snd_seq_event_output_pending(snd_seq_t *seq);
565int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev);
566int snd_seq_drop_output(snd_seq_t *handle);
567int snd_seq_drop_output_buffer(snd_seq_t *handle);
568int snd_seq_drop_input(snd_seq_t *handle);
569int snd_seq_drop_input_buffer(snd_seq_t *handle);
570
572 typedef struct _snd_seq_remove_events snd_seq_remove_events_t;
573
575#define SND_SEQ_REMOVE_INPUT (1<<0)
576#define SND_SEQ_REMOVE_OUTPUT (1<<1)
577#define SND_SEQ_REMOVE_DEST (1<<2)
578#define SND_SEQ_REMOVE_DEST_CHANNEL (1<<3)
579#define SND_SEQ_REMOVE_TIME_BEFORE (1<<4)
580#define SND_SEQ_REMOVE_TIME_AFTER (1<<5)
581#define SND_SEQ_REMOVE_TIME_TICK (1<<6)
582#define SND_SEQ_REMOVE_EVENT_TYPE (1<<7)
583#define SND_SEQ_REMOVE_IGNORE_OFF (1<<8)
584#define SND_SEQ_REMOVE_TAG_MATCH (1<<9)
586size_t snd_seq_remove_events_sizeof(void);
588#define snd_seq_remove_events_alloca(ptr) \
589 __snd_alloca(ptr, snd_seq_remove_events)
590int snd_seq_remove_events_malloc(snd_seq_remove_events_t **ptr);
591void snd_seq_remove_events_free(snd_seq_remove_events_t *ptr);
592void snd_seq_remove_events_copy(snd_seq_remove_events_t *dst, const snd_seq_remove_events_t *src);
593
594unsigned int snd_seq_remove_events_get_condition(const snd_seq_remove_events_t *info);
595int snd_seq_remove_events_get_queue(const snd_seq_remove_events_t *info);
596const snd_seq_timestamp_t *snd_seq_remove_events_get_time(const snd_seq_remove_events_t *info);
597const snd_seq_addr_t *snd_seq_remove_events_get_dest(const snd_seq_remove_events_t *info);
598int snd_seq_remove_events_get_channel(const snd_seq_remove_events_t *info);
599int snd_seq_remove_events_get_event_type(const snd_seq_remove_events_t *info);
600int snd_seq_remove_events_get_tag(const snd_seq_remove_events_t *info);
601
602void snd_seq_remove_events_set_condition(snd_seq_remove_events_t *info, unsigned int flags);
603void snd_seq_remove_events_set_queue(snd_seq_remove_events_t *info, int queue);
604void snd_seq_remove_events_set_time(snd_seq_remove_events_t *info, const snd_seq_timestamp_t *time);
605void snd_seq_remove_events_set_dest(snd_seq_remove_events_t *info, const snd_seq_addr_t *addr);
606void snd_seq_remove_events_set_channel(snd_seq_remove_events_t *info, int channel);
607void snd_seq_remove_events_set_event_type(snd_seq_remove_events_t *info, int type);
608void snd_seq_remove_events_set_tag(snd_seq_remove_events_t *info, int tag);
609
610int snd_seq_remove_events(snd_seq_t *handle, snd_seq_remove_events_t *info);
611
612int snd_seq_ump_event_output(snd_seq_t *seq, snd_seq_ump_event_t *ev);
613int snd_seq_ump_event_output_buffer(snd_seq_t *seq, snd_seq_ump_event_t *ev);
614int snd_seq_ump_extract_output(snd_seq_t *seq, snd_seq_ump_event_t **ev_res);
615int snd_seq_ump_event_output_direct(snd_seq_t *seq, snd_seq_ump_event_t *ev);
616int snd_seq_ump_event_input(snd_seq_t *seq, snd_seq_ump_event_t **ev);
617
627void snd_seq_set_bit(int nr, void *array);
628void snd_seq_unset_bit(int nr, void *array);
629int snd_seq_change_bit(int nr, void *array);
630int snd_seq_get_bit(int nr, void *array);
631
642/* event type macros */
643enum {
644 SND_SEQ_EVFLG_RESULT,
645 SND_SEQ_EVFLG_NOTE,
646 SND_SEQ_EVFLG_CONTROL,
647 SND_SEQ_EVFLG_QUEUE,
648 SND_SEQ_EVFLG_SYSTEM,
649 SND_SEQ_EVFLG_MESSAGE,
650 SND_SEQ_EVFLG_CONNECTION,
651 SND_SEQ_EVFLG_SAMPLE,
652 SND_SEQ_EVFLG_USERS,
653 SND_SEQ_EVFLG_INSTR,
654 SND_SEQ_EVFLG_QUOTE,
655 SND_SEQ_EVFLG_NONE,
656 SND_SEQ_EVFLG_RAW,
657 SND_SEQ_EVFLG_FIXED,
658 SND_SEQ_EVFLG_VARIABLE,
659 SND_SEQ_EVFLG_VARUSR
660};
661
662enum {
663 SND_SEQ_EVFLG_NOTE_ONEARG,
664 SND_SEQ_EVFLG_NOTE_TWOARG
665};
666
667enum {
668 SND_SEQ_EVFLG_QUEUE_NOARG,
669 SND_SEQ_EVFLG_QUEUE_TICK,
670 SND_SEQ_EVFLG_QUEUE_TIME,
671 SND_SEQ_EVFLG_QUEUE_VALUE
672};
673
679extern const unsigned int snd_seq_event_types[];
680
681#define _SND_SEQ_TYPE(x) (1<<(x))
682#define _SND_SEQ_TYPE_OPT(x) ((x)<<24)
685#define snd_seq_type_check(ev,x) (snd_seq_event_types[(ev)->type] & _SND_SEQ_TYPE(x))
686
688#define snd_seq_ev_is_result_type(ev) \
689 snd_seq_type_check(ev, SND_SEQ_EVFLG_RESULT)
691#define snd_seq_ev_is_note_type(ev) \
692 snd_seq_type_check(ev, SND_SEQ_EVFLG_NOTE)
694#define snd_seq_ev_is_control_type(ev) \
695 snd_seq_type_check(ev, SND_SEQ_EVFLG_CONTROL)
697#define snd_seq_ev_is_channel_type(ev) \
698 (snd_seq_event_types[(ev)->type] & (_SND_SEQ_TYPE(SND_SEQ_EVFLG_NOTE) | _SND_SEQ_TYPE(SND_SEQ_EVFLG_CONTROL)))
699
701#define snd_seq_ev_is_queue_type(ev) \
702 snd_seq_type_check(ev, SND_SEQ_EVFLG_QUEUE)
704#define snd_seq_ev_is_message_type(ev) \
705 snd_seq_type_check(ev, SND_SEQ_EVFLG_MESSAGE)
707#define snd_seq_ev_is_subscribe_type(ev) \
708 snd_seq_type_check(ev, SND_SEQ_EVFLG_CONNECTION)
710#define snd_seq_ev_is_sample_type(ev) \
711 snd_seq_type_check(ev, SND_SEQ_EVFLG_SAMPLE)
713#define snd_seq_ev_is_user_type(ev) \
714 snd_seq_type_check(ev, SND_SEQ_EVFLG_USERS)
716#define snd_seq_ev_is_instr_type(ev) \
717 snd_seq_type_check(ev, SND_SEQ_EVFLG_INSTR)
719#define snd_seq_ev_is_fixed_type(ev) \
720 snd_seq_type_check(ev, SND_SEQ_EVFLG_FIXED)
722#define snd_seq_ev_is_variable_type(ev) \
723 snd_seq_type_check(ev, SND_SEQ_EVFLG_VARIABLE)
725#define snd_seq_ev_is_varusr_type(ev) \
726 snd_seq_type_check(ev, SND_SEQ_EVFLG_VARUSR)
728#define snd_seq_ev_is_reserved(ev) \
729 (! snd_seq_event_types[(ev)->type])
730
735#define snd_seq_ev_is_prior(ev) \
736 (((ev)->flags & SND_SEQ_PRIORITY_MASK) == SND_SEQ_PRIORITY_HIGH)
737
739#define snd_seq_ev_length_type(ev) \
740 ((ev)->flags & SND_SEQ_EVENT_LENGTH_MASK)
742#define snd_seq_ev_is_fixed(ev) \
743 (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_FIXED)
745#define snd_seq_ev_is_variable(ev) \
746 (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_VARIABLE)
748#define snd_seq_ev_is_varusr(ev) \
749 (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_VARUSR)
750
752#define snd_seq_ev_timestamp_type(ev) \
753 ((ev)->flags & SND_SEQ_TIME_STAMP_MASK)
755#define snd_seq_ev_is_tick(ev) \
756 (snd_seq_ev_timestamp_type(ev) == SND_SEQ_TIME_STAMP_TICK)
758#define snd_seq_ev_is_real(ev) \
759 (snd_seq_ev_timestamp_type(ev) == SND_SEQ_TIME_STAMP_REAL)
760
762#define snd_seq_ev_timemode_type(ev) \
763 ((ev)->flags & SND_SEQ_TIME_MODE_MASK)
765#define snd_seq_ev_is_abstime(ev) \
766 (snd_seq_ev_timemode_type(ev) == SND_SEQ_TIME_MODE_ABS)
768#define snd_seq_ev_is_reltime(ev) \
769 (snd_seq_ev_timemode_type(ev) == SND_SEQ_TIME_MODE_REL)
770
772#define snd_seq_ev_is_direct(ev) \
773 ((ev)->queue == SND_SEQ_QUEUE_DIRECT)
774
776#define snd_seq_ev_is_ump(ev) \
777 ((ev)->flags & SND_SEQ_EVENT_UMP)
778
781#ifdef __cplusplus
782}
783#endif
784
785#endif /* __ALSA_SEQ_H */
786
snd_config_t
struct _snd_config snd_config_t
Internal structure for a configuration node object.
Definition conf.h:69
snd_seq_set_client_pool
int snd_seq_set_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info)
set the pool information
Definition seq.c:5180
snd_seq_client_pool_get_output_room
size_t snd_seq_client_pool_get_output_room(const snd_seq_client_pool_t *info)
Get the output room size of a queue_info container.
Definition seq.c:5098
snd_seq_client_info_get_name
const char * snd_seq_client_info_get_name(snd_seq_client_info_t *info)
Get the name of a client_info container.
Definition seq.c:1511
snd_seq_client_pool_get_client
int snd_seq_client_pool_get_client(const snd_seq_client_pool_t *info)
Get the client id of a queue_info container.
Definition seq.c:5065
snd_seq_set_client_info
int snd_seq_set_client_info(snd_seq_t *handle, snd_seq_client_info_t *info)
set the current client information
Definition seq.c:1994
snd_seq_client_info_get_event_lost
int snd_seq_client_info_get_event_lost(const snd_seq_client_info_t *info)
Get the number of lost events of a client_info container.
Definition seq.c:1732
snd_seq_client_info_set_error_bounce
void snd_seq_client_info_set_error_bounce(snd_seq_client_info_t *info, int val)
Set the error-bounce usage of a client_info container.
Definition seq.c:1911
snd_seq_client_info_set_midi_version
void snd_seq_client_info_set_midi_version(snd_seq_client_info_t *info, int midi_version)
Set the MIDI protocol version of a client_info container.
Definition seq.c:1846
snd_seq_client_info_set_name
void snd_seq_client_info_set_name(snd_seq_client_info_t *info, const char *name)
Set the name of a client_info container.
Definition seq.c:1817
snd_seq_client_pool_set_input_pool
void snd_seq_client_pool_set_input_pool(snd_seq_client_pool_t *info, size_t size)
Set the input pool size of a queue_info container.
Definition seq.c:5142
snd_seq_client_pool_set_output_room
void snd_seq_client_pool_set_output_room(snd_seq_client_pool_t *info, size_t size)
Set the output room size of a queue_info container.
Definition seq.c:5153
snd_seq_client_info_set_client
void snd_seq_client_info_set_client(snd_seq_client_info_t *info, int client)
Set the client id of a client_info container.
Definition seq.c:1803
snd_seq_client_info_event_filter_check
int snd_seq_client_info_event_filter_check(snd_seq_client_info_t *info, int event_type)
Check if an event type is present in the event filtering of a client_info container.
Definition seq.c:1706
snd_seq_client_pool_copy
void snd_seq_client_pool_copy(snd_seq_client_pool_t *dst, const snd_seq_client_pool_t *src)
copy one snd_seq_client_pool_t to another
Definition seq.c:5053
snd_seq_client_pool_get_input_pool
size_t snd_seq_client_pool_get_input_pool(const snd_seq_client_pool_t *info)
Get the input pool size of a queue_info container.
Definition seq.c:5087
snd_seq_client_pool_get_output_free
size_t snd_seq_client_pool_get_output_free(const snd_seq_client_pool_t *info)
Get the available size on output pool of a queue_info container.
Definition seq.c:5109
snd_seq_client_info_sizeof
size_t snd_seq_client_info_sizeof(void)
get size of snd_seq_client_info_t
Definition seq.c:1435
snd_seq_client_info_event_filter_del
void snd_seq_client_info_event_filter_del(snd_seq_client_info_t *info, int event_type)
Remove an event type from the event filtering of a client_info container.
Definition seq.c:1686
snd_seq_client_info_get_client
int snd_seq_client_info_get_client(const snd_seq_client_info_t *info)
Get client id of a client_info container.
Definition seq.c:1482
snd_seq_client_info_set_ump_conversion
void snd_seq_client_info_set_ump_conversion(snd_seq_client_info_t *info, int enable)
Set the automatic conversion mode for UMP.
Definition seq.c:1894
snd_seq_client_info_malloc
int snd_seq_client_info_malloc(snd_seq_client_info_t **ptr)
allocate an empty snd_seq_client_info_t using standard malloc
Definition seq.c:1445
snd_seq_client_pool_sizeof
size_t snd_seq_client_pool_sizeof(void)
get size of snd_seq_client_pool_t
Definition seq.c:5020
snd_seq_client_info_get_broadcast_filter
int snd_seq_client_info_get_broadcast_filter(const snd_seq_client_info_t *info)
Get the broadcast filter usage of a client_info container.
Definition seq.c:1524
snd_seq_client_info_get_ump_groupless_enabled
int snd_seq_client_info_get_ump_groupless_enabled(const snd_seq_client_info_t *info)
Get the UMP groupless message handling status.
Definition seq.c:1777
snd_seq_set_ump_endpoint_info
int snd_seq_set_ump_endpoint_info(snd_seq_t *seq, const void *info)
Set UMP Endpoint information to the current client.
Definition seq.c:2059
snd_seq_client_info_set_broadcast_filter
void snd_seq_client_info_set_broadcast_filter(snd_seq_client_info_t *info, int val)
Set the broadcast filter usage of a client_info container.
Definition seq.c:1830
snd_seq_client_info_get_midi_version
int snd_seq_client_info_get_midi_version(const snd_seq_client_info_t *info)
Get the MIDI protocol version number of a client_info container.
Definition seq.c:1745
snd_seq_client_info_event_filter_clear
void snd_seq_client_info_event_filter_clear(snd_seq_client_info_t *info)
Disable event filtering of a client_info container.
Definition seq.c:1644
snd_seq_client_info_set_ump_group_enabled
void snd_seq_client_info_set_ump_group_enabled(snd_seq_client_info_t *info, int group, int enable)
Set the UMP group filter status.
Definition seq.c:1860
snd_seq_query_next_client
int snd_seq_query_next_client(snd_seq_t *handle, snd_seq_client_info_t *info)
query the next client
Definition seq.c:2016
snd_seq_set_ump_block_info
int snd_seq_set_ump_block_info(snd_seq_t *seq, int blk, const void *info)
Set UMP Block information to the current client.
Definition seq.c:2074
snd_seq_get_client_pool
int snd_seq_get_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info)
obtain the pool information of the current client
Definition seq.c:5165
snd_seq_client_info_event_filter_add
void snd_seq_client_info_event_filter_add(snd_seq_client_info_t *info, int event_type)
Add an event type to the event filtering of a client_info container.
Definition seq.c:1665
snd_seq_client_pool_get_output_pool
size_t snd_seq_client_pool_get_output_pool(const snd_seq_client_pool_t *info)
Get the output pool size of a queue_info container.
Definition seq.c:5076
snd_seq_get_ump_endpoint_info
int snd_seq_get_ump_endpoint_info(snd_seq_t *seq, int client, void *info)
Get UMP Endpoint information.
Definition seq.c:2029
snd_seq_client_pool_malloc
int snd_seq_client_pool_malloc(snd_seq_client_pool_t **ptr)
allocate an empty snd_seq_client_pool_t using standard malloc
Definition seq.c:5030
snd_seq_client_info_get_ump_conversion
int snd_seq_client_info_get_ump_conversion(const snd_seq_client_info_t *info)
Get the automatic conversion mode for UMP.
Definition seq.c:1790
snd_seq_client_info_get_error_bounce
int snd_seq_client_info_get_error_bounce(const snd_seq_client_info_t *info)
Get the error-bounce usage of a client_info container.
Definition seq.c:1537
snd_seq_get_any_client_info
int snd_seq_get_any_client_info(snd_seq_t *handle, int client, snd_seq_client_info_t *info)
obtain the information of the given client
Definition seq.c:1958
snd_seq_client_info_t
struct _snd_seq_client_info snd_seq_client_info_t
Definition seq.h:125
snd_seq_client_info_get_pid
int snd_seq_client_info_get_pid(const snd_seq_client_info_t *info)
Get the owning PID.
Definition seq.c:1603
snd_seq_client_type_t
snd_seq_client_type_t
Definition seq.h:128
snd_seq_client_pool_set_output_pool
void snd_seq_client_pool_set_output_pool(snd_seq_client_pool_t *info, size_t size)
Set the output pool size of a queue_info container.
Definition seq.c:5131
snd_seq_client_info_free
void snd_seq_client_info_free(snd_seq_client_info_t *ptr)
frees a previously allocated snd_seq_client_info_t
Definition seq.c:1458
snd_seq_client_info_get_ump_group_enabled
int snd_seq_client_info_get_ump_group_enabled(const snd_seq_client_info_t *info, int group)
Get the UMP group filter status.
Definition seq.c:1759
snd_seq_client_info_get_event_filter
const unsigned char * snd_seq_client_info_get_event_filter(const snd_seq_client_info_t *info)
(DEPRECATED) Get the event filter bitmap of a client_info container
Definition seq.c:1622
snd_seq_client_info_get_num_ports
int snd_seq_client_info_get_num_ports(const snd_seq_client_info_t *info)
Get the number of opened ports of a client_info container.
Definition seq.c:1719
snd_seq_client_info_set_event_filter
void snd_seq_client_info_set_event_filter(snd_seq_client_info_t *info, unsigned char *filter)
(DEPRECATED) Set the event filter bitmap of a client_info container
Definition seq.c:1933
snd_seq_get_client_info
int snd_seq_get_client_info(snd_seq_t *handle, snd_seq_client_info_t *info)
obtain the current client information
Definition seq.c:1978
snd_seq_client_pool_t
struct _snd_seq_client_pool snd_seq_client_pool_t
Definition seq.h:195
snd_seq_client_pool_free
void snd_seq_client_pool_free(snd_seq_client_pool_t *ptr)
frees a previously allocated snd_seq_client_pool_t
Definition seq.c:5043
snd_seq_client_info_get_type
snd_seq_client_type_t snd_seq_client_info_get_type(const snd_seq_client_info_t *info)
Get client type of a client_info container.
Definition seq.c:1498
snd_seq_get_ump_block_info
int snd_seq_get_ump_block_info(snd_seq_t *seq, int client, int blk, void *info)
Get UMP Block information.
Definition seq.c:2045
snd_seq_client_info_copy
void snd_seq_client_info_copy(snd_seq_client_info_t *dst, const snd_seq_client_info_t *src)
copy one snd_seq_client_info_t to another
Definition seq.c:1468
snd_seq_client_pool_get_input_free
size_t snd_seq_client_pool_get_input_free(const snd_seq_client_pool_t *info)
Get the available size on input pool of a queue_info container.
Definition seq.c:5120
snd_seq_client_info_set_ump_groupless_enabled
void snd_seq_client_info_set_ump_groupless_enabled(snd_seq_client_info_t *info, int enable)
Enable/disable the UMP groupless message handling.
Definition seq.c:1877
snd_seq_client_info_get_card
int snd_seq_client_info_get_card(const snd_seq_client_info_t *info)
Get the sound card number.
Definition seq.c:1568
SND_SEQ_CLIENT_UMP_MIDI_1_0
@ SND_SEQ_CLIENT_UMP_MIDI_1_0
Definition seq.h:136
SND_SEQ_CLIENT_LEGACY_MIDI
@ SND_SEQ_CLIENT_LEGACY_MIDI
Definition seq.h:135
SND_SEQ_CLIENT_UMP_MIDI_2_0
@ SND_SEQ_CLIENT_UMP_MIDI_2_0
Definition seq.h:137
SND_SEQ_KERNEL_CLIENT
@ SND_SEQ_KERNEL_CLIENT
Definition seq.h:130
SND_SEQ_USER_CLIENT
@ SND_SEQ_USER_CLIENT
Definition seq.h:129
snd_seq_event_types
const unsigned int snd_seq_event_types[]
Definition seq_event.c:15
snd_seq_event_output
int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev)
output an event
Definition seq.c:4150
snd_seq_remove_events_copy
void snd_seq_remove_events_copy(snd_seq_remove_events_t *dst, const snd_seq_remove_events_t *src)
copy one snd_seq_remove_events_t to another
Definition seq.c:4693
snd_seq_remove_events_set_channel
void snd_seq_remove_events_set_channel(snd_seq_remove_events_t *info, int channel)
Set the channel as removal condition.
Definition seq.c:4850
snd_seq_event_input_pending
int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer)
check events in input buffer
Definition seq.c:4468
snd_seq_drop_output_buffer
int snd_seq_drop_output_buffer(snd_seq_t *handle)
remove all events on user-space output buffer
Definition seq.c:4597
snd_seq_remove_events_free
void snd_seq_remove_events_free(snd_seq_remove_events_t *ptr)
frees a previously allocated snd_seq_remove_events_t
Definition seq.c:4683
snd_seq_remove_events_malloc
int snd_seq_remove_events_malloc(snd_seq_remove_events_t **ptr)
allocate an empty snd_seq_remove_events_t using standard malloc
Definition seq.c:4670
snd_seq_remove_events_get_event_type
int snd_seq_remove_events_get_event_type(const snd_seq_remove_events_t *info)
Get the event type as removal condition.
Definition seq.c:4772
snd_seq_ump_extract_output
int snd_seq_ump_extract_output(snd_seq_t *seq, snd_seq_ump_event_t **ev_res)
extract the first UMP event in output buffer
Definition seq.c:4534
snd_seq_ump_event_output
int snd_seq_ump_event_output(snd_seq_t *seq, snd_seq_ump_event_t *ev)
output a UMP event
Definition seq.c:4500
snd_seq_remove_events_set_time
void snd_seq_remove_events_set_time(snd_seq_remove_events_t *info, const snd_seq_timestamp_t *time)
Set the timestamp as removal condition.
Definition seq.c:4824
snd_seq_event_output_buffer
int snd_seq_event_output_buffer(snd_seq_t *handle, snd_seq_event_t *ev)
output an event onto the lib buffer without draining buffer
Definition seq.c:4184
snd_seq_remove_events_get_condition
unsigned int snd_seq_remove_events_get_condition(const snd_seq_remove_events_t *info)
Get the removal condition bits.
Definition seq.c:4707
snd_seq_remove_events_get_channel
int snd_seq_remove_events_get_channel(const snd_seq_remove_events_t *info)
Get the event channel as removal condition.
Definition seq.c:4759
snd_seq_remove_events_set_tag
void snd_seq_remove_events_set_tag(snd_seq_remove_events_t *info, int tag)
Set the event tag as removal condition.
Definition seq.c:4876
snd_seq_remove_events_set_event_type
void snd_seq_remove_events_set_event_type(snd_seq_remove_events_t *info, int type)
Set the event type as removal condition.
Definition seq.c:4863
snd_seq_remove_events_set_condition
void snd_seq_remove_events_set_condition(snd_seq_remove_events_t *info, unsigned int flags)
Set the removal condition bits.
Definition seq.c:4798
snd_seq_event_output_direct
int snd_seq_event_output_direct(snd_seq_t *handle, snd_seq_event_t *ev)
output an event directly to the sequencer NOT through output buffer
Definition seq.c:4244
snd_seq_event_input
int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev)
retrieve an event from sequencer
Definition seq.c:4421
snd_seq_drain_output
int snd_seq_drain_output(snd_seq_t *handle)
drain output buffer to sequencer
Definition seq.c:4293
snd_seq_free_event
int snd_seq_free_event(snd_seq_event_t *ev)
(DEPRECATED) free an event
Definition seq.c:4104
snd_seq_drop_input
int snd_seq_drop_input(snd_seq_t *handle)
clear input buffer and and remove events in sequencer queue
Definition seq.c:4644
snd_seq_remove_events_get_time
const snd_seq_timestamp_t * snd_seq_remove_events_get_time(const snd_seq_remove_events_t *info)
Get the event timestamp as removal condition.
Definition seq.c:4733
snd_seq_remove_events_set_queue
void snd_seq_remove_events_set_queue(snd_seq_remove_events_t *info, int queue)
Set the queue as removal condition.
Definition seq.c:4811
snd_seq_drop_input_buffer
int snd_seq_drop_input_buffer(snd_seq_t *handle)
remove all events on user-space input FIFO
Definition seq.c:4610
snd_seq_remove_events
int snd_seq_remove_events(snd_seq_t *handle, snd_seq_remove_events_t *info)
remove events on input/output buffers and pools
Definition seq.c:4967
snd_seq_ump_event_output_direct
int snd_seq_ump_event_output_direct(snd_seq_t *seq, snd_seq_ump_event_t *ev)
output a UMP event directly to the sequencer NOT through output buffer
Definition seq.c:4551
snd_seq_extract_output
int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev)
extract the first event in output buffer
Definition seq.c:4322
snd_seq_event_output_pending
int snd_seq_event_output_pending(snd_seq_t *seq)
return the size of pending events on output buffer
Definition seq.c:4272
snd_seq_ump_event_output_buffer
int snd_seq_ump_event_output_buffer(snd_seq_t *seq, snd_seq_ump_event_t *ev)
output an event onto the lib buffer without draining buffer
Definition seq.c:4517
snd_seq_remove_events_sizeof
size_t snd_seq_remove_events_sizeof(void)
get size of snd_seq_remove_events_t
Definition seq.c:4660
snd_seq_remove_events_set_dest
void snd_seq_remove_events_set_dest(snd_seq_remove_events_t *info, const snd_seq_addr_t *addr)
Set the destination address as removal condition.
Definition seq.c:4837
snd_seq_remove_events_get_dest
const snd_seq_addr_t * snd_seq_remove_events_get_dest(const snd_seq_remove_events_t *info)
Get the event destination address as removal condition.
Definition seq.c:4746
snd_seq_ump_event_input
int snd_seq_ump_event_input(snd_seq_t *seq, snd_seq_ump_event_t **ev)
retrieve a UMP event from sequencer
Definition seq.c:4574
snd_seq_drop_output
int snd_seq_drop_output(snd_seq_t *handle)
remove all events on output buffer
Definition seq.c:4627
snd_seq_event_length
ssize_t snd_seq_event_length(snd_seq_event_t *ev)
calculates the (encoded) byte-stream size of the event
Definition seq.c:4115
snd_seq_remove_events_get_tag
int snd_seq_remove_events_get_tag(const snd_seq_remove_events_t *info)
Get the event tag id as removal condition.
Definition seq.c:4785
snd_seq_remove_events_get_queue
int snd_seq_remove_events_get_queue(const snd_seq_remove_events_t *info)
Get the queue as removal condition.
Definition seq.c:4720
snd_seq_remove_events_t
struct _snd_seq_remove_events snd_seq_remove_events_t
Definition seq.h:572
snd_seq_tick_time_t
unsigned int snd_seq_tick_time_t
Definition seq_event.h:197
snd_seq_change_bit
int snd_seq_change_bit(int nr, void *array)
change a bit flag
Definition seq.c:5212
snd_seq_unset_bit
void snd_seq_unset_bit(int nr, void *array)
unset a bit flag
Definition seq.c:5204
snd_seq_set_bit
void snd_seq_set_bit(int nr, void *array)
set a bit flag
Definition seq.c:5196
snd_seq_get_bit
int snd_seq_get_bit(int nr, void *array)
get a bit flag state
Definition seq.c:5224
snd_seq_port_info_t
struct _snd_seq_port_info snd_seq_port_info_t
Definition seq.h:230
snd_seq_port_info_get_timestamp_queue
int snd_seq_port_info_get_timestamp_queue(const snd_seq_port_info_t *info)
Get the queue id to update timestamps.
Definition seq.c:2322
snd_seq_port_info_get_timestamping
int snd_seq_port_info_get_timestamping(const snd_seq_port_info_t *info)
Get the time-stamping mode of the given port in a port_info container.
Definition seq.c:2296
snd_seq_port_info_set_addr
void snd_seq_port_info_set_addr(snd_seq_port_info_t *info, const snd_seq_addr_t *addr)
Set the client/port address of a port_info container.
Definition seq.c:2387
snd_seq_port_info_set_timestamp_real
void snd_seq_port_info_set_timestamp_real(snd_seq_port_info_t *info, int realtime)
Set whether the timestime is updated in the real-time mode.
Definition seq.c:2510
snd_seq_port_info_get_synth_voices
int snd_seq_port_info_get_synth_voices(const snd_seq_port_info_t *info)
Get the synth voices of a port_info container.
Definition seq.c:2270
snd_seq_port_info_get_addr
const snd_seq_addr_t * snd_seq_port_info_get_addr(const snd_seq_port_info_t *info)
Get client/port address of a port_info container.
Definition seq.c:2166
snd_seq_port_info_get_capability
unsigned int snd_seq_port_info_get_capability(const snd_seq_port_info_t *info)
Get the capability bits of a port_info container.
Definition seq.c:2192
snd_seq_port_info_get_timestamp_real
int snd_seq_port_info_get_timestamp_real(const snd_seq_port_info_t *info)
Get whether the time-stamping of the given port is real-time mode.
Definition seq.c:2309
snd_seq_port_info_get_client
int snd_seq_port_info_get_client(const snd_seq_port_info_t *info)
Get client id of a port_info container.
Definition seq.c:2140
snd_seq_port_info_set_timestamp_queue
void snd_seq_port_info_set_timestamp_queue(snd_seq_port_info_t *info, int queue)
Set the queue id for timestamping.
Definition seq.c:2526
snd_seq_port_info_set_capability
void snd_seq_port_info_set_capability(snd_seq_port_info_t *info, unsigned int capability)
set the capability bits of a port_info container
Definition seq.c:2413
snd_seq_port_info_get_type
unsigned int snd_seq_port_info_get_type(const snd_seq_port_info_t *info)
Get the type bits of a port_info container.
Definition seq.c:2205
snd_seq_port_info_get_read_use
int snd_seq_port_info_get_read_use(const snd_seq_port_info_t *info)
Get the number of read subscriptions of a port_info container.
Definition seq.c:2218
snd_seq_port_info_get_ump_group
int snd_seq_port_info_get_ump_group(const snd_seq_port_info_t *info)
Get the UMP Group assigned to the port.
Definition seq.c:2348
snd_seq_port_info_set_client
void snd_seq_port_info_set_client(snd_seq_port_info_t *info, int client)
Set the client id of a port_info container.
Definition seq.c:2361
snd_seq_port_info_get_write_use
int snd_seq_port_info_get_write_use(const snd_seq_port_info_t *info)
Get the number of write subscriptions of a port_info container.
Definition seq.c:2231
snd_seq_port_info_malloc
int snd_seq_port_info_malloc(snd_seq_port_info_t **ptr)
allocate an empty snd_seq_port_info_t using standard malloc
Definition seq.c:2103
snd_seq_port_info_get_port
int snd_seq_port_info_get_port(const snd_seq_port_info_t *info)
Get port id of a port_info container.
Definition seq.c:2153
snd_seq_port_info_set_midi_channels
void snd_seq_port_info_set_midi_channels(snd_seq_port_info_t *info, int channels)
set the midi channels of a port_info container
Definition seq.c:2439
snd_seq_port_info_get_midi_channels
int snd_seq_port_info_get_midi_channels(const snd_seq_port_info_t *info)
Get the midi channels of a port_info container.
Definition seq.c:2244
snd_seq_get_port_info
int snd_seq_get_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info)
obtain the information of a port on the current client
Definition seq.c:2659
snd_seq_port_info_set_midi_voices
void snd_seq_port_info_set_midi_voices(snd_seq_port_info_t *info, int voices)
set the midi voices of a port_info container
Definition seq.c:2452
snd_seq_query_next_port
int snd_seq_query_next_port(snd_seq_t *handle, snd_seq_port_info_t *info)
query the next matching port
Definition seq.c:2698
snd_seq_delete_port
int snd_seq_delete_port(snd_seq_t *handle, int port)
delete a sequencer port on the current client
Definition seq.c:2620
snd_seq_port_info_sizeof
size_t snd_seq_port_info_sizeof(void)
get size of snd_seq_port_info_t
Definition seq.c:2093
snd_seq_create_port
int snd_seq_create_port(snd_seq_t *handle, snd_seq_port_info_t *info)
create a sequencer port on the current client
Definition seq.c:2603
snd_seq_port_info_get_direction
int snd_seq_port_info_get_direction(const snd_seq_port_info_t *info)
Get the direction of the port.
Definition seq.c:2335
snd_seq_port_info_set_direction
void snd_seq_port_info_set_direction(snd_seq_port_info_t *info, int direction)
Set the direction of the port.
Definition seq.c:2539
snd_seq_set_port_info
int snd_seq_set_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info)
set the information of a port on the current client
Definition seq.c:2673
snd_seq_port_info_copy
void snd_seq_port_info_copy(snd_seq_port_info_t *dst, const snd_seq_port_info_t *src)
copy one snd_seq_port_info_t to another
Definition seq.c:2126
snd_seq_port_info_set_ump_group
void snd_seq_port_info_set_ump_group(snd_seq_port_info_t *info, int ump_group)
Set the UMP Group assigned to the port.
Definition seq.c:2552
snd_seq_port_info_free
void snd_seq_port_info_free(snd_seq_port_info_t *ptr)
frees a previously allocated snd_seq_port_info_t
Definition seq.c:2116
snd_seq_get_any_port_info
int snd_seq_get_any_port_info(snd_seq_t *handle, int client, int port, snd_seq_port_info_t *info)
obtain the information of a port on an arbitrary client
Definition seq.c:2640
snd_seq_port_info_get_midi_voices
int snd_seq_port_info_get_midi_voices(const snd_seq_port_info_t *info)
Get the midi voices of a port_info container.
Definition seq.c:2257
snd_seq_port_info_set_timestamping
void snd_seq_port_info_set_timestamping(snd_seq_port_info_t *info, int enable)
Set the time-stamping mode of the given port.
Definition seq.c:2494
snd_seq_port_info_set_synth_voices
void snd_seq_port_info_set_synth_voices(snd_seq_port_info_t *info, int voices)
set the synth voices of a port_info container
Definition seq.c:2465
snd_seq_port_info_get_name
const char * snd_seq_port_info_get_name(const snd_seq_port_info_t *info)
Get the name of a port_info container.
Definition seq.c:2179
snd_seq_port_info_set_name
void snd_seq_port_info_set_name(snd_seq_port_info_t *info, const char *name)
Set the name of a port_info container.
Definition seq.c:2400
snd_seq_port_info_set_port
void snd_seq_port_info_set_port(snd_seq_port_info_t *info, int port)
Set the port id of a port_info container.
Definition seq.c:2374
snd_seq_port_info_set_type
void snd_seq_port_info_set_type(snd_seq_port_info_t *info, unsigned int type)
Get the type bits of a port_info container.
Definition seq.c:2426
snd_seq_port_info_get_port_specified
int snd_seq_port_info_get_port_specified(const snd_seq_port_info_t *info)
Get the port-specified mode of a port_info container.
Definition seq.c:2283
snd_seq_port_info_set_port_specified
void snd_seq_port_info_set_port_specified(snd_seq_port_info_t *info, int val)
Set the port-specified mode of a port_info container.
Definition seq.c:2478
snd_seq_queue_info_set_owner
void snd_seq_queue_info_set_owner(snd_seq_queue_info_t *info, int owner)
Set the owner client id of a queue_info container.
Definition seq.c:3383
snd_seq_alloc_queue
int snd_seq_alloc_queue(snd_seq_t *handle)
allocate a queue
Definition seq.c:3461
snd_seq_create_queue
int snd_seq_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
create a queue
Definition seq.c:3424
snd_seq_queue_tempo_get_tempo
unsigned int snd_seq_queue_tempo_get_tempo(const snd_seq_queue_tempo_t *info)
Get the tempo of a queue_status container.
Definition seq.c:3771
snd_seq_queue_timer_free
void snd_seq_queue_timer_free(snd_seq_queue_timer_t *ptr)
frees a previously allocated snd_seq_queue_timer_t
Definition seq.c:3934
snd_seq_queue_info_get_locked
int snd_seq_queue_info_get_locked(const snd_seq_queue_info_t *info)
Get the lock status of a queue_info container.
Definition seq.c:3344
snd_seq_queue_status_copy
void snd_seq_queue_status_copy(snd_seq_queue_status_t *dst, const snd_seq_queue_status_t *src)
copy one snd_seq_queue_status_t to another
Definition seq.c:3617
snd_seq_set_queue_info
int snd_seq_set_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info)
change the queue attributes
Definition seq.c:3508
snd_seq_queue_tempo_set_skew
void snd_seq_queue_tempo_set_skew(snd_seq_queue_tempo_t *info, unsigned int skew)
Set the timer skew value of a queue_status container.
Definition seq.c:3852
snd_seq_queue_timer_get_queue
int snd_seq_queue_timer_get_queue(const snd_seq_queue_timer_t *info)
Get the queue id of a queue_timer container.
Definition seq.c:3958
snd_seq_queue_info_copy
void snd_seq_queue_info_copy(snd_seq_queue_info_t *dst, const snd_seq_queue_info_t *src)
copy one snd_seq_queue_info_t to another
Definition seq.c:3291
snd_seq_queue_status_get_status
unsigned int snd_seq_queue_status_get_status(const snd_seq_queue_status_t *info)
Get the running status bits of a queue_status container.
Definition seq.c:3682
snd_seq_queue_timer_get_resolution
unsigned int snd_seq_queue_timer_get_resolution(const snd_seq_queue_timer_t *info)
Get the timer resolution of a queue_timer container.
Definition seq.c:3997
snd_seq_queue_status_get_real_time
const snd_seq_real_time_t * snd_seq_queue_status_get_real_time(const snd_seq_queue_status_t *info)
Get the real time of a queue_status container.
Definition seq.c:3669
snd_seq_queue_status_sizeof
size_t snd_seq_queue_status_sizeof(void)
get size of snd_seq_queue_status_t
Definition seq.c:3584
snd_seq_queue_info_get_queue
int snd_seq_queue_info_get_queue(const snd_seq_queue_info_t *info)
Get the queue id of a queue_info container.
Definition seq.c:3305
snd_seq_queue_status_get_tick_time
snd_seq_tick_time_t snd_seq_queue_status_get_tick_time(const snd_seq_queue_status_t *info)
Get the tick time of a queue_status container.
Definition seq.c:3657
snd_seq_queue_tempo_set_tempo
void snd_seq_queue_tempo_set_tempo(snd_seq_queue_tempo_t *info, unsigned int tempo)
Set the tempo of a queue_status container.
Definition seq.c:3823
snd_seq_queue_info_free
void snd_seq_queue_info_free(snd_seq_queue_info_t *ptr)
frees a previously allocated snd_seq_queue_info_t
Definition seq.c:3281
snd_seq_get_queue_timer
int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer)
obtain the queue timer information
Definition seq.c:4052
snd_seq_queue_timer_set_id
void snd_seq_queue_timer_set_id(snd_seq_queue_timer_t *info, const snd_timer_id_t *id)
Set the timer id of a queue_timer container.
Definition seq.c:4023
snd_seq_get_queue_info
int snd_seq_get_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info)
obtain queue attributes
Definition seq.c:3492
snd_seq_queue_info_sizeof
size_t snd_seq_queue_info_sizeof(void)
get size of snd_seq_queue_info_t
Definition seq.c:3258
snd_seq_queue_tempo_get_skew
unsigned int snd_seq_queue_tempo_get_skew(const snd_seq_queue_tempo_t *info)
Get the timer skew value of a queue_status container.
Definition seq.c:3797
snd_seq_get_queue_status
int snd_seq_get_queue_status(snd_seq_t *handle, int q, snd_seq_queue_status_t *status)
obtain the running state of the queue
Definition seq.c:3698
snd_seq_get_queue_usage
int snd_seq_get_queue_usage(snd_seq_t *handle, int q)
Get the queue usage flag to the client.
Definition seq.c:3546
snd_seq_free_queue
int snd_seq_free_queue(snd_seq_t *handle, int q)
delete the specified queue
Definition seq.c:3474
snd_seq_queue_info_get_flags
unsigned int snd_seq_queue_info_get_flags(const snd_seq_queue_info_t *info)
Get the conditional bit flags of a queue_info container.
Definition seq.c:3357
snd_seq_set_queue_timer
int snd_seq_set_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer)
set the queue timer information
Definition seq.c:4069
snd_seq_queue_timer_sizeof
size_t snd_seq_queue_timer_sizeof(void)
get size of snd_seq_queue_timer_t
Definition seq.c:3911
snd_seq_queue_timer_get_type
snd_seq_queue_timer_type_t snd_seq_queue_timer_get_type(const snd_seq_queue_timer_t *info)
Get the timer type of a queue_timer container.
Definition seq.c:3971
snd_seq_queue_tempo_get_ppq
int snd_seq_queue_tempo_get_ppq(const snd_seq_queue_tempo_t *info)
Get the ppq of a queue_status container.
Definition seq.c:3784
snd_seq_queue_tempo_set_ppq
void snd_seq_queue_tempo_set_ppq(snd_seq_queue_tempo_t *info, int ppq)
Set the ppq of a queue_status container.
Definition seq.c:3836
snd_seq_queue_tempo_copy
void snd_seq_queue_tempo_copy(snd_seq_queue_tempo_t *dst, const snd_seq_queue_tempo_t *src)
copy one snd_seq_queue_tempo_t to another
Definition seq.c:3744
snd_seq_queue_timer_set_resolution
void snd_seq_queue_timer_set_resolution(snd_seq_queue_timer_t *info, unsigned int resolution)
Set the timer resolution of a queue_timer container.
Definition seq.c:4036
snd_seq_queue_status_t
struct _snd_seq_queue_status snd_seq_queue_status_t
Definition seq.h:437
snd_seq_queue_tempo_malloc
int snd_seq_queue_tempo_malloc(snd_seq_queue_tempo_t **ptr)
allocate an empty snd_seq_queue_tempo_t using standard malloc
Definition seq.c:3721
snd_seq_set_queue_tempo
int snd_seq_set_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo)
set the tempo of the queue
Definition seq.c:3897
snd_seq_queue_tempo_t
struct _snd_seq_queue_tempo snd_seq_queue_tempo_t
Definition seq.h:439
snd_seq_alloc_named_queue
int snd_seq_alloc_named_queue(snd_seq_t *seq, const char *name)
allocate a queue with the specified name
Definition seq.c:3443
snd_seq_queue_info_get_owner
int snd_seq_queue_info_get_owner(const snd_seq_queue_info_t *info)
Get the owner client id of a queue_info container.
Definition seq.c:3331
snd_seq_queue_status_malloc
int snd_seq_queue_status_malloc(snd_seq_queue_status_t **ptr)
allocate an empty snd_seq_queue_status_t using standard malloc
Definition seq.c:3594
snd_seq_queue_tempo_sizeof
size_t snd_seq_queue_tempo_sizeof(void)
get size of snd_seq_queue_tempo_t
Definition seq.c:3711
snd_seq_queue_info_get_name
const char * snd_seq_queue_info_get_name(const snd_seq_queue_info_t *info)
Get the name of a queue_info container.
Definition seq.c:3318
snd_seq_queue_info_set_name
void snd_seq_queue_info_set_name(snd_seq_queue_info_t *info, const char *name)
Set the name of a queue_info container.
Definition seq.c:3370
snd_seq_queue_timer_type_t
snd_seq_queue_timer_type_t
Definition seq.h:521
snd_seq_queue_status_free
void snd_seq_queue_status_free(snd_seq_queue_status_t *ptr)
frees a previously allocated snd_seq_queue_status_t
Definition seq.c:3607
snd_seq_query_named_queue
int snd_seq_query_named_queue(snd_seq_t *seq, const char *name)
query the matching queue with the specified name
Definition seq.c:3525
snd_seq_queue_status_get_queue
int snd_seq_queue_status_get_queue(const snd_seq_queue_status_t *info)
Get the queue id of a queue_status container.
Definition seq.c:3631
snd_seq_queue_tempo_get_skew_base
unsigned int snd_seq_queue_tempo_get_skew_base(const snd_seq_queue_tempo_t *info)
Get the timer skew base value of a queue_status container.
Definition seq.c:3810
snd_seq_queue_timer_get_id
const snd_timer_id_t * snd_seq_queue_timer_get_id(const snd_seq_queue_timer_t *info)
Get the timer id of a queue_timer container.
Definition seq.c:3984
snd_seq_queue_tempo_free
void snd_seq_queue_tempo_free(snd_seq_queue_tempo_t *ptr)
frees a previously allocated snd_seq_queue_tempo_t
Definition seq.c:3734
snd_seq_queue_tempo_get_queue
int snd_seq_queue_tempo_get_queue(const snd_seq_queue_tempo_t *info)
Get the queue id of a queue_status container.
Definition seq.c:3758
snd_seq_queue_timer_set_type
void snd_seq_queue_timer_set_type(snd_seq_queue_timer_t *info, snd_seq_queue_timer_type_t type)
Set the timer type of a queue_timer container.
Definition seq.c:4010
snd_seq_queue_status_get_events
int snd_seq_queue_status_get_events(const snd_seq_queue_status_t *info)
Get the number of events of a queue_status container.
Definition seq.c:3644
snd_seq_queue_info_set_flags
void snd_seq_queue_info_set_flags(snd_seq_queue_info_t *info, unsigned int flags)
Set the conditional bit flags of a queue_info container.
Definition seq.c:3409
snd_seq_queue_timer_copy
void snd_seq_queue_timer_copy(snd_seq_queue_timer_t *dst, const snd_seq_queue_timer_t *src)
copy one snd_seq_queue_timer_t to another
Definition seq.c:3944
snd_seq_queue_info_t
struct _snd_seq_queue_info snd_seq_queue_info_t
Definition seq.h:435
snd_seq_queue_info_malloc
int snd_seq_queue_info_malloc(snd_seq_queue_info_t **ptr)
allocate an empty snd_seq_queue_info_t using standard malloc
Definition seq.c:3268
snd_seq_queue_info_set_locked
void snd_seq_queue_info_set_locked(snd_seq_queue_info_t *info, int locked)
Set the lock status of a queue_info container.
Definition seq.c:3396
snd_seq_set_queue_usage
int snd_seq_set_queue_usage(snd_seq_t *handle, int q, int used)
Set the queue usage flag to the client.
Definition seq.c:3568
snd_seq_get_queue_tempo
int snd_seq_get_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo)
obtain the current tempo of the queue
Definition seq.c:3880
snd_seq_queue_tempo_set_skew_base
void snd_seq_queue_tempo_set_skew_base(snd_seq_queue_tempo_t *info, unsigned int base)
Set the timer skew base value of a queue_status container.
Definition seq.c:3865
snd_seq_queue_timer_malloc
int snd_seq_queue_timer_malloc(snd_seq_queue_timer_t **ptr)
allocate an empty snd_seq_queue_timer_t using standard malloc
Definition seq.c:3921
snd_seq_queue_timer_t
struct _snd_seq_queue_timer snd_seq_queue_timer_t
Definition seq.h:441
snd_seq_query_subscribe_set_client
void snd_seq_query_subscribe_set_client(snd_seq_query_subscribe_t *info, int client)
Set the client id of a query_subscribe container.
Definition seq.c:3164
snd_seq_query_subscribe_get_exclusive
int snd_seq_query_subscribe_get_exclusive(const snd_seq_query_subscribe_t *info)
Get the exclusive mode of a query_subscribe container.
Definition seq.c:3125
snd_seq_port_subscribe_set_dest
void snd_seq_port_subscribe_set_dest(snd_seq_port_subscribe_t *info, const snd_seq_addr_t *addr)
Set destination address of a port_subscribe container.
Definition seq.c:2852
snd_seq_port_subscribe_get_time_update
int snd_seq_port_subscribe_get_time_update(const snd_seq_port_subscribe_t *info)
Get the time-update mode of a port_subscribe container.
Definition seq.c:2813
snd_seq_port_subscribe_set_exclusive
void snd_seq_port_subscribe_set_exclusive(snd_seq_port_subscribe_t *info, int val)
Set the exclusive mode of a port_subscribe container.
Definition seq.c:2878
snd_seq_port_subscribe_set_time_real
void snd_seq_port_subscribe_set_time_real(snd_seq_port_subscribe_t *info, int val)
Set the real-time mode of a port_subscribe container.
Definition seq.c:2910
snd_seq_port_subscribe_get_queue
int snd_seq_port_subscribe_get_queue(const snd_seq_port_subscribe_t *info)
Get the queue id of a port_subscribe container.
Definition seq.c:2787
snd_seq_query_subscribe_get_client
int snd_seq_query_subscribe_get_client(const snd_seq_query_subscribe_t *info)
Get the client id of a query_subscribe container.
Definition seq.c:3021
snd_seq_get_port_subscription
int snd_seq_get_port_subscription(snd_seq_t *handle, snd_seq_port_subscribe_t *sub)
obtain subscription information
Definition seq.c:2928
snd_seq_subscribe_port
int snd_seq_subscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub)
subscribe a port connection
Definition seq.c:2946
snd_seq_query_subscribe_get_addr
const snd_seq_addr_t * snd_seq_query_subscribe_get_addr(const snd_seq_query_subscribe_t *info)
Get the address of subscriber of a query_subscribe container.
Definition seq.c:3099
snd_seq_query_subscribe_get_root
const snd_seq_addr_t * snd_seq_query_subscribe_get_root(const snd_seq_query_subscribe_t *info)
Get the client/port address of a query_subscribe container.
Definition seq.c:3047
snd_seq_query_subscribe_get_index
int snd_seq_query_subscribe_get_index(const snd_seq_query_subscribe_t *info)
Get the index of subscriber of a query_subscribe container.
Definition seq.c:3073
snd_seq_query_subscribe_set_index
void snd_seq_query_subscribe_set_index(snd_seq_query_subscribe_t *info, int _index)
Set the subscriber's index to be queried.
Definition seq.c:3216
snd_seq_query_subscribe_sizeof
size_t snd_seq_query_subscribe_sizeof(void)
get size of snd_seq_query_subscribe_t
Definition seq.c:2974
snd_seq_query_subscribe_get_time_update
int snd_seq_query_subscribe_get_time_update(const snd_seq_query_subscribe_t *info)
Get the time-update mode of a query_subscribe container.
Definition seq.c:3138
snd_seq_port_subscribe_malloc
int snd_seq_port_subscribe_malloc(snd_seq_port_subscribe_t **ptr)
allocate an empty snd_seq_port_subscribe_t using standard malloc
Definition seq.c:2726
snd_seq_query_subscribe_get_queue
int snd_seq_query_subscribe_get_queue(const snd_seq_query_subscribe_t *info)
Get the queue id of subscriber of a query_subscribe container.
Definition seq.c:3112
snd_seq_query_subscribe_t
struct _snd_seq_query_subscribe snd_seq_query_subscribe_t
Definition seq.h:388
snd_seq_port_subscribe_copy
void snd_seq_port_subscribe_copy(snd_seq_port_subscribe_t *dst, const snd_seq_port_subscribe_t *src)
copy one snd_seq_port_subscribe_t to another
Definition seq.c:2749
snd_seq_port_subscribe_set_queue
void snd_seq_port_subscribe_set_queue(snd_seq_port_subscribe_t *info, int q)
Set the queue id of a port_subscribe container.
Definition seq.c:2865
snd_seq_port_subscribe_get_sender
const snd_seq_addr_t * snd_seq_port_subscribe_get_sender(const snd_seq_port_subscribe_t *info)
Get sender address of a port_subscribe container.
Definition seq.c:2762
snd_seq_query_subscribe_malloc
int snd_seq_query_subscribe_malloc(snd_seq_query_subscribe_t **ptr)
allocate an empty snd_seq_query_subscribe_t using standard malloc
Definition seq.c:2984
snd_seq_port_subscribe_free
void snd_seq_port_subscribe_free(snd_seq_port_subscribe_t *ptr)
frees a previously allocated snd_seq_port_subscribe_t
Definition seq.c:2739
snd_seq_query_subscribe_get_port
int snd_seq_query_subscribe_get_port(const snd_seq_query_subscribe_t *info)
Get the port id of a query_subscribe container.
Definition seq.c:3034
snd_seq_unsubscribe_port
int snd_seq_unsubscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub)
unsubscribe a connection between ports
Definition seq.c:2963
snd_seq_query_subscribe_get_time_real
int snd_seq_query_subscribe_get_time_real(const snd_seq_query_subscribe_t *info)
Get the real-time update mode of a query_subscribe container.
Definition seq.c:3151
snd_seq_port_subscribe_set_time_update
void snd_seq_port_subscribe_set_time_update(snd_seq_port_subscribe_t *info, int val)
Set the time-update mode of a port_subscribe container.
Definition seq.c:2894
snd_seq_query_subscribe_set_root
void snd_seq_query_subscribe_set_root(snd_seq_query_subscribe_t *info, const snd_seq_addr_t *addr)
Set the client/port address of a query_subscribe container.
Definition seq.c:3190
snd_seq_query_subscribe_set_port
void snd_seq_query_subscribe_set_port(snd_seq_query_subscribe_t *info, int port)
Set the port id of a query_subscribe container.
Definition seq.c:3177
snd_seq_port_subscribe_get_dest
const snd_seq_addr_t * snd_seq_port_subscribe_get_dest(const snd_seq_port_subscribe_t *info)
Get destination address of a port_subscribe container.
Definition seq.c:2774
snd_seq_query_subscribe_get_num_subs
int snd_seq_query_subscribe_get_num_subs(const snd_seq_query_subscribe_t *info)
Get the number of subscriptions of a query_subscribe container.
Definition seq.c:3086
snd_seq_port_subscribe_set_sender
void snd_seq_port_subscribe_set_sender(snd_seq_port_subscribe_t *info, const snd_seq_addr_t *addr)
Set sender address of a port_subscribe container.
Definition seq.c:2839
snd_seq_query_subscribe_get_type
snd_seq_query_subs_type_t snd_seq_query_subscribe_get_type(const snd_seq_query_subscribe_t *info)
Get the query type of a query_subscribe container.
Definition seq.c:3060
snd_seq_port_subscribe_get_exclusive
int snd_seq_port_subscribe_get_exclusive(const snd_seq_port_subscribe_t *info)
Get the exclusive mode of a port_subscribe container.
Definition seq.c:2800
snd_seq_query_port_subscribers
int snd_seq_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subscribe_t *subs)
query port subscriber list
Definition seq.c:3242
snd_seq_query_subscribe_copy
void snd_seq_query_subscribe_copy(snd_seq_query_subscribe_t *dst, const snd_seq_query_subscribe_t *src)
copy one snd_seq_query_subscribe_t to another
Definition seq.c:3007
snd_seq_port_subscribe_get_time_real
int snd_seq_port_subscribe_get_time_real(const snd_seq_port_subscribe_t *info)
Get the real-time update mode of a port_subscribe container.
Definition seq.c:2826
snd_seq_query_subscribe_set_type
void snd_seq_query_subscribe_set_type(snd_seq_query_subscribe_t *info, snd_seq_query_subs_type_t type)
Set the query type of a query_subscribe container.
Definition seq.c:3203
snd_seq_port_subscribe_sizeof
size_t snd_seq_port_subscribe_sizeof(void)
get size of snd_seq_port_subscribe_t
Definition seq.c:2716
snd_seq_query_subscribe_free
void snd_seq_query_subscribe_free(snd_seq_query_subscribe_t *ptr)
frees a previously allocated snd_seq_query_subscribe_t
Definition seq.c:2997
snd_seq_query_subs_type_t
snd_seq_query_subs_type_t
Definition seq.h:391
snd_seq_port_subscribe_t
struct _snd_seq_port_subscribe snd_seq_port_subscribe_t
Definition seq.h:356
SND_SEQ_QUERY_SUBS_READ
@ SND_SEQ_QUERY_SUBS_READ
Definition seq.h:392
SND_SEQ_QUERY_SUBS_WRITE
@ SND_SEQ_QUERY_SUBS_WRITE
Definition seq.h:393
snd_seq_get_output_buffer_size
size_t snd_seq_get_output_buffer_size(snd_seq_t *handle)
Return the size of output buffer.
Definition seq.c:1199
snd_seq_open_lconf
int snd_seq_open_lconf(snd_seq_t **handle, const char *name, int streams, int mode, snd_config_t *lconf)
Open the ALSA sequencer using local configuration.
Definition seq.c:1010
snd_seq_system_info_sizeof
size_t snd_seq_system_info_sizeof(void)
Get size of snd_seq_system_info_t.
Definition seq.c:1294
snd_seq_type
snd_seq_type_t snd_seq_type(snd_seq_t *seq)
get type of sequencer handle
Definition seq.c:815
snd_seq_system_info_t
struct _snd_seq_system_info snd_seq_system_info_t
Definition seq.h:95
snd_seq_client_id
int snd_seq_client_id(snd_seq_t *handle)
Get the client id.
Definition seq.c:1182
snd_seq_system_info
int snd_seq_system_info(snd_seq_t *handle, snd_seq_system_info_t *info)
obtain the sequencer system information
Definition seq.c:1422
snd_seq_system_info_get_channels
int snd_seq_system_info_get_channels(const snd_seq_system_info_t *info)
Get maximum number of channels.
Definition seq.c:1380
snd_seq_system_info_get_cur_queues
int snd_seq_system_info_get_cur_queues(const snd_seq_system_info_t *info)
Get the current number of queues.
Definition seq.c:1406
snd_seq_set_input_buffer_size
int snd_seq_set_input_buffer_size(snd_seq_t *handle, size_t size)
Resize the input buffer.
Definition seq.c:1267
snd_seq_system_info_get_queues
int snd_seq_system_info_get_queues(const snd_seq_system_info_t *info)
Get maximum number of queues.
Definition seq.c:1341
snd_seq_system_info_get_clients
int snd_seq_system_info_get_clients(const snd_seq_system_info_t *info)
Get maximum number of clients.
Definition seq.c:1354
snd_seq_system_info_copy
void snd_seq_system_info_copy(snd_seq_system_info_t *dst, const snd_seq_system_info_t *src)
Copy one snd_seq_system_info_t to another.
Definition seq.c:1327
snd_seq_open
int snd_seq_open(snd_seq_t **handle, const char *name, int streams, int mode)
Open the ALSA sequencer.
Definition seq.c:974
snd_seq_type_t
snd_seq_type_t
Definition seq.h:62
snd_seq_poll_descriptors
int snd_seq_poll_descriptors(snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events)
Get poll descriptors.
Definition seq.c:1103
snd_seq_nonblock
int snd_seq_nonblock(snd_seq_t *handle, int nonblock)
Set nonblock mode.
Definition seq.c:1156
snd_seq_poll_descriptors_revents
int snd_seq_poll_descriptors_revents(snd_seq_t *seq, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
get returned events from poll descriptors
Definition seq.c:1133
snd_seq_close
int snd_seq_close(snd_seq_t *handle)
Close the sequencer.
Definition seq.c:1043
snd_seq_get_input_buffer_size
size_t snd_seq_get_input_buffer_size(snd_seq_t *handle)
Return the size of input buffer.
Definition seq.c:1222
snd_seq_system_info_malloc
int snd_seq_system_info_malloc(snd_seq_system_info_t **ptr)
Allocate an empty snd_seq_system_info_t using standard malloc.
Definition seq.c:1304
snd_seq_name
const char * snd_seq_name(snd_seq_t *seq)
get identifier of sequencer handle
Definition seq.c:800
snd_seq_t
struct _snd_seq snd_seq_t
Definition seq.h:47
snd_seq_system_info_get_ports
int snd_seq_system_info_get_ports(const snd_seq_system_info_t *info)
Get maximum number of ports.
Definition seq.c:1367
snd_seq_set_output_buffer_size
int snd_seq_set_output_buffer_size(snd_seq_t *handle, size_t size)
Change the size of output buffer.
Definition seq.c:1240
snd_seq_system_info_get_cur_clients
int snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info)
Get the current number of clients.
Definition seq.c:1393
snd_seq_poll_descriptors_count
int snd_seq_poll_descriptors_count(snd_seq_t *handle, short events)
Returns the number of poll descriptors.
Definition seq.c:1070
snd_seq_system_info_free
void snd_seq_system_info_free(snd_seq_system_info_t *ptr)
Frees a previously allocated snd_seq_system_info_t.
Definition seq.c:1317
SND_SEQ_TYPE_INET
@ SND_SEQ_TYPE_INET
Definition seq.h:65
SND_SEQ_TYPE_SHM
@ SND_SEQ_TYPE_SHM
Definition seq.h:64
SND_SEQ_TYPE_HW
@ SND_SEQ_TYPE_HW
Definition seq.h:63
snd_timer_id_t
struct _snd_timer_id snd_timer_id_t
Definition timer.h:47
snd_seq_addr_t
Definition seq_event.h:178
snd_seq_event_t
Definition seq_event.h:310
snd_seq_real_time_t
Definition seq_event.h:191
snd_seq_ump_event_t
Definition seq_event.h:325
snd_seq_timestamp_t
Definition seq_event.h:200