ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.1.8/include/seq.h Source File

ALSA project - the C library reference

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
33 extern "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 */
78 int snd_seq_open(snd_seq_t **handle, const char *name, int streams, int mode);
79 int snd_seq_open_lconf(snd_seq_t **handle, const char *name, int streams, int mode, snd_config_t *lconf);
80 const char *snd_seq_name(snd_seq_t *seq);
81 snd_seq_type_t snd_seq_type(snd_seq_t *seq);
82 int snd_seq_close(snd_seq_t *handle);
83 int snd_seq_poll_descriptors_count(snd_seq_t *handle, short events);
84 int snd_seq_poll_descriptors(snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events);
85 int snd_seq_poll_descriptors_revents(snd_seq_t *seq, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
86 int snd_seq_nonblock(snd_seq_t *handle, int nonblock);
87 int snd_seq_client_id(snd_seq_t *handle);
88
89 size_t snd_seq_get_output_buffer_size(snd_seq_t *handle);
90 size_t snd_seq_get_input_buffer_size(snd_seq_t *handle);
91 int snd_seq_set_output_buffer_size(snd_seq_t *handle, size_t size);
92 int 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
97 size_t snd_seq_system_info_sizeof(void);
99 #define snd_seq_system_info_alloca(ptr) \
100 __snd_alloca(ptr, snd_seq_system_info)
101 int snd_seq_system_info_malloc(snd_seq_system_info_t **ptr);
102 void snd_seq_system_info_free(snd_seq_system_info_t *ptr);
103 void snd_seq_system_info_copy(snd_seq_system_info_t *dst, const snd_seq_system_info_t *src);
104
105 int snd_seq_system_info_get_queues(const snd_seq_system_info_t *info);
106 int snd_seq_system_info_get_clients(const snd_seq_system_info_t *info);
107 int snd_seq_system_info_get_ports(const snd_seq_system_info_t *info);
108 int snd_seq_system_info_get_channels(const snd_seq_system_info_t *info);
109 int snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info);
110 int snd_seq_system_info_get_cur_queues(const snd_seq_system_info_t *info);
111
112 int 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
133 size_t snd_seq_client_info_sizeof(void);
135 #define snd_seq_client_info_alloca(ptr) \
136 __snd_alloca(ptr, snd_seq_client_info)
137 int snd_seq_client_info_malloc(snd_seq_client_info_t **ptr);
138 void snd_seq_client_info_free(snd_seq_client_info_t *ptr);
139 void snd_seq_client_info_copy(snd_seq_client_info_t *dst, const snd_seq_client_info_t *src);
140
141 int snd_seq_client_info_get_client(const snd_seq_client_info_t *info);
142 snd_seq_client_type_t snd_seq_client_info_get_type(const snd_seq_client_info_t *info);
143 const char *snd_seq_client_info_get_name(snd_seq_client_info_t *info);
144 int snd_seq_client_info_get_broadcast_filter(const snd_seq_client_info_t *info);
145 int snd_seq_client_info_get_error_bounce(const snd_seq_client_info_t *info);
146 int snd_seq_client_info_get_card(const snd_seq_client_info_t *info);
147 int snd_seq_client_info_get_pid(const snd_seq_client_info_t *info);
148 const unsigned char *snd_seq_client_info_get_event_filter(const snd_seq_client_info_t *info);
149 int snd_seq_client_info_get_num_ports(const snd_seq_client_info_t *info);
150 int snd_seq_client_info_get_event_lost(const snd_seq_client_info_t *info);
151
152 void snd_seq_client_info_set_client(snd_seq_client_info_t *info, int client);
153 void snd_seq_client_info_set_name(snd_seq_client_info_t *info, const char *name);
154 void snd_seq_client_info_set_broadcast_filter(snd_seq_client_info_t *info, int val);
155 void snd_seq_client_info_set_error_bounce(snd_seq_client_info_t *info, int val);
156 void snd_seq_client_info_set_event_filter(snd_seq_client_info_t *info, unsigned char *filter);
157
158 void snd_seq_client_info_event_filter_clear(snd_seq_client_info_t *info);
159 void snd_seq_client_info_event_filter_add(snd_seq_client_info_t *info, int event_type);
160 void snd_seq_client_info_event_filter_del(snd_seq_client_info_t *info, int event_type);
161 int snd_seq_client_info_event_filter_check(snd_seq_client_info_t *info, int event_type);
162
163 int snd_seq_get_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
164 int snd_seq_get_any_client_info(snd_seq_t *handle, int client, snd_seq_client_info_t *info);
165 int snd_seq_set_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
166 int snd_seq_query_next_client(snd_seq_t *handle, snd_seq_client_info_t *info);
167
168 /*
169 */
170
172 typedef struct _snd_seq_client_pool snd_seq_client_pool_t;
173
174 size_t snd_seq_client_pool_sizeof(void);
176 #define snd_seq_client_pool_alloca(ptr) \
177 __snd_alloca(ptr, snd_seq_client_pool)
178 int snd_seq_client_pool_malloc(snd_seq_client_pool_t **ptr);
179 void snd_seq_client_pool_free(snd_seq_client_pool_t *ptr);
180 void snd_seq_client_pool_copy(snd_seq_client_pool_t *dst, const snd_seq_client_pool_t *src);
181
182 int snd_seq_client_pool_get_client(const snd_seq_client_pool_t *info);
183 size_t snd_seq_client_pool_get_output_pool(const snd_seq_client_pool_t *info);
184 size_t snd_seq_client_pool_get_input_pool(const snd_seq_client_pool_t *info);
185 size_t snd_seq_client_pool_get_output_room(const snd_seq_client_pool_t *info);
186 size_t snd_seq_client_pool_get_output_free(const snd_seq_client_pool_t *info);
187 size_t snd_seq_client_pool_get_input_free(const snd_seq_client_pool_t *info);
188 void snd_seq_client_pool_set_output_pool(snd_seq_client_pool_t *info, size_t size);
189 void snd_seq_client_pool_set_input_pool(snd_seq_client_pool_t *info, size_t size);
190 void snd_seq_client_pool_set_output_room(snd_seq_client_pool_t *info, size_t size);
191
192 int snd_seq_get_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info);
193 int snd_seq_set_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info);
194
195
207 typedef struct _snd_seq_port_info snd_seq_port_info_t;
208
210 #define SND_SEQ_PORT_SYSTEM_TIMER 0
211 #define SND_SEQ_PORT_SYSTEM_ANNOUNCE 1
214 #define SND_SEQ_PORT_CAP_READ (1<<0)
215 #define SND_SEQ_PORT_CAP_WRITE (1<<1)
217 #define SND_SEQ_PORT_CAP_SYNC_READ (1<<2)
218 #define SND_SEQ_PORT_CAP_SYNC_WRITE (1<<3)
220 #define SND_SEQ_PORT_CAP_DUPLEX (1<<4)
222 #define SND_SEQ_PORT_CAP_SUBS_READ (1<<5)
223 #define SND_SEQ_PORT_CAP_SUBS_WRITE (1<<6)
224 #define SND_SEQ_PORT_CAP_NO_EXPORT (1<<7)
226 /* port type */
227
228 #define SND_SEQ_PORT_TYPE_SPECIFIC (1<<0)
229
230 #define SND_SEQ_PORT_TYPE_MIDI_GENERIC (1<<1)
231
232 #define SND_SEQ_PORT_TYPE_MIDI_GM (1<<2)
233
234 #define SND_SEQ_PORT_TYPE_MIDI_GS (1<<3)
235
236 #define SND_SEQ_PORT_TYPE_MIDI_XG (1<<4)
237
238 #define SND_SEQ_PORT_TYPE_MIDI_MT32 (1<<5)
239
240 #define SND_SEQ_PORT_TYPE_MIDI_GM2 (1<<6)
241
243 #define SND_SEQ_PORT_TYPE_SYNTH (1<<10)
244
246 #define SND_SEQ_PORT_TYPE_DIRECT_SAMPLE (1<<11)
247
249 #define SND_SEQ_PORT_TYPE_SAMPLE (1<<12)
250
251 #define SND_SEQ_PORT_TYPE_HARDWARE (1<<16)
252
253 #define SND_SEQ_PORT_TYPE_SOFTWARE (1<<17)
254
255 #define SND_SEQ_PORT_TYPE_SYNTHESIZER (1<<18)
256
258 #define SND_SEQ_PORT_TYPE_PORT (1<<19)
259
260 #define SND_SEQ_PORT_TYPE_APPLICATION (1<<20)
261
262
263 size_t snd_seq_port_info_sizeof(void);
265 #define snd_seq_port_info_alloca(ptr) \
266 __snd_alloca(ptr, snd_seq_port_info)
267 int snd_seq_port_info_malloc(snd_seq_port_info_t **ptr);
268 void snd_seq_port_info_free(snd_seq_port_info_t *ptr);
269 void snd_seq_port_info_copy(snd_seq_port_info_t *dst, const snd_seq_port_info_t *src);
270
271 int snd_seq_port_info_get_client(const snd_seq_port_info_t *info);
272 int snd_seq_port_info_get_port(const snd_seq_port_info_t *info);
273 const snd_seq_addr_t *snd_seq_port_info_get_addr(const snd_seq_port_info_t *info);
274 const char *snd_seq_port_info_get_name(const snd_seq_port_info_t *info);
275 unsigned int snd_seq_port_info_get_capability(const snd_seq_port_info_t *info);
276 unsigned int snd_seq_port_info_get_type(const snd_seq_port_info_t *info);
277 int snd_seq_port_info_get_midi_channels(const snd_seq_port_info_t *info);
278 int snd_seq_port_info_get_midi_voices(const snd_seq_port_info_t *info);
279 int snd_seq_port_info_get_synth_voices(const snd_seq_port_info_t *info);
280 int snd_seq_port_info_get_read_use(const snd_seq_port_info_t *info);
281 int snd_seq_port_info_get_write_use(const snd_seq_port_info_t *info);
282 int snd_seq_port_info_get_port_specified(const snd_seq_port_info_t *info);
283 int snd_seq_port_info_get_timestamping(const snd_seq_port_info_t *info);
284 int snd_seq_port_info_get_timestamp_real(const snd_seq_port_info_t *info);
285 int snd_seq_port_info_get_timestamp_queue(const snd_seq_port_info_t *info);
286
287 void snd_seq_port_info_set_client(snd_seq_port_info_t *info, int client);
288 void snd_seq_port_info_set_port(snd_seq_port_info_t *info, int port);
289 void snd_seq_port_info_set_addr(snd_seq_port_info_t *info, const snd_seq_addr_t *addr);
290 void snd_seq_port_info_set_name(snd_seq_port_info_t *info, const char *name);
291 void snd_seq_port_info_set_capability(snd_seq_port_info_t *info, unsigned int capability);
292 void snd_seq_port_info_set_type(snd_seq_port_info_t *info, unsigned int type);
293 void snd_seq_port_info_set_midi_channels(snd_seq_port_info_t *info, int channels);
294 void snd_seq_port_info_set_midi_voices(snd_seq_port_info_t *info, int voices);
295 void snd_seq_port_info_set_synth_voices(snd_seq_port_info_t *info, int voices);
296 void snd_seq_port_info_set_port_specified(snd_seq_port_info_t *info, int val);
297 void snd_seq_port_info_set_timestamping(snd_seq_port_info_t *info, int enable);
298 void snd_seq_port_info_set_timestamp_real(snd_seq_port_info_t *info, int realtime);
299 void snd_seq_port_info_set_timestamp_queue(snd_seq_port_info_t *info, int queue);
300
301 int snd_seq_create_port(snd_seq_t *handle, snd_seq_port_info_t *info);
302 int snd_seq_delete_port(snd_seq_t *handle, int port);
303 int snd_seq_get_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
304 int snd_seq_get_any_port_info(snd_seq_t *handle, int client, int port, snd_seq_port_info_t *info);
305 int snd_seq_set_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
306 int snd_seq_query_next_port(snd_seq_t *handle, snd_seq_port_info_t *info);
307
319 typedef struct _snd_seq_port_subscribe snd_seq_port_subscribe_t;
320
321 size_t snd_seq_port_subscribe_sizeof(void);
323 #define snd_seq_port_subscribe_alloca(ptr) \
324 __snd_alloca(ptr, snd_seq_port_subscribe)
325 int snd_seq_port_subscribe_malloc(snd_seq_port_subscribe_t **ptr);
326 void snd_seq_port_subscribe_free(snd_seq_port_subscribe_t *ptr);
327 void snd_seq_port_subscribe_copy(snd_seq_port_subscribe_t *dst, const snd_seq_port_subscribe_t *src);
328
329 const snd_seq_addr_t *snd_seq_port_subscribe_get_sender(const snd_seq_port_subscribe_t *info);
330 const snd_seq_addr_t *snd_seq_port_subscribe_get_dest(const snd_seq_port_subscribe_t *info);
331 int snd_seq_port_subscribe_get_queue(const snd_seq_port_subscribe_t *info);
332 int snd_seq_port_subscribe_get_exclusive(const snd_seq_port_subscribe_t *info);
333 int snd_seq_port_subscribe_get_time_update(const snd_seq_port_subscribe_t *info);
334 int snd_seq_port_subscribe_get_time_real(const snd_seq_port_subscribe_t *info);
335
336 void snd_seq_port_subscribe_set_sender(snd_seq_port_subscribe_t *info, const snd_seq_addr_t *addr);
337 void snd_seq_port_subscribe_set_dest(snd_seq_port_subscribe_t *info, const snd_seq_addr_t *addr);
338 void snd_seq_port_subscribe_set_queue(snd_seq_port_subscribe_t *info, int q);
339 void snd_seq_port_subscribe_set_exclusive(snd_seq_port_subscribe_t *info, int val);
340 void snd_seq_port_subscribe_set_time_update(snd_seq_port_subscribe_t *info, int val);
341 void snd_seq_port_subscribe_set_time_real(snd_seq_port_subscribe_t *info, int val);
342
343 int snd_seq_get_port_subscription(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
344 int snd_seq_subscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
345 int snd_seq_unsubscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
346
347 /*
348 */
349
351 typedef struct _snd_seq_query_subscribe snd_seq_query_subscribe_t;
352
354 typedef enum {
355 SND_SEQ_QUERY_SUBS_READ,
356 SND_SEQ_QUERY_SUBS_WRITE
357 } snd_seq_query_subs_type_t;
358
359 size_t snd_seq_query_subscribe_sizeof(void);
361 #define snd_seq_query_subscribe_alloca(ptr) \
362 __snd_alloca(ptr, snd_seq_query_subscribe)
363 int snd_seq_query_subscribe_malloc(snd_seq_query_subscribe_t **ptr);
364 void snd_seq_query_subscribe_free(snd_seq_query_subscribe_t *ptr);
365 void snd_seq_query_subscribe_copy(snd_seq_query_subscribe_t *dst, const snd_seq_query_subscribe_t *src);
366
367 int snd_seq_query_subscribe_get_client(const snd_seq_query_subscribe_t *info);
368 int snd_seq_query_subscribe_get_port(const snd_seq_query_subscribe_t *info);
369 const snd_seq_addr_t *snd_seq_query_subscribe_get_root(const snd_seq_query_subscribe_t *info);
370 snd_seq_query_subs_type_t snd_seq_query_subscribe_get_type(const snd_seq_query_subscribe_t *info);
371 int snd_seq_query_subscribe_get_index(const snd_seq_query_subscribe_t *info);
372 int snd_seq_query_subscribe_get_num_subs(const snd_seq_query_subscribe_t *info);
373 const snd_seq_addr_t *snd_seq_query_subscribe_get_addr(const snd_seq_query_subscribe_t *info);
374 int snd_seq_query_subscribe_get_queue(const snd_seq_query_subscribe_t *info);
375 int snd_seq_query_subscribe_get_exclusive(const snd_seq_query_subscribe_t *info);
376 int snd_seq_query_subscribe_get_time_update(const snd_seq_query_subscribe_t *info);
377 int snd_seq_query_subscribe_get_time_real(const snd_seq_query_subscribe_t *info);
378
379 void snd_seq_query_subscribe_set_client(snd_seq_query_subscribe_t *info, int client);
380 void snd_seq_query_subscribe_set_port(snd_seq_query_subscribe_t *info, int port);
381 void snd_seq_query_subscribe_set_root(snd_seq_query_subscribe_t *info, const snd_seq_addr_t *addr);
382 void snd_seq_query_subscribe_set_type(snd_seq_query_subscribe_t *info, snd_seq_query_subs_type_t type);
383 void snd_seq_query_subscribe_set_index(snd_seq_query_subscribe_t *info, int _index);
384
385 int snd_seq_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subscribe_t * subs);
386
398 typedef struct _snd_seq_queue_info snd_seq_queue_info_t;
400 typedef struct _snd_seq_queue_status snd_seq_queue_status_t;
402 typedef struct _snd_seq_queue_tempo snd_seq_queue_tempo_t;
404 typedef struct _snd_seq_queue_timer snd_seq_queue_timer_t;
405
407 #define SND_SEQ_QUEUE_DIRECT 253
409 size_t snd_seq_queue_info_sizeof(void);
410
411 #define snd_seq_queue_info_alloca(ptr) \
412 __snd_alloca(ptr, snd_seq_queue_info)
413 int snd_seq_queue_info_malloc(snd_seq_queue_info_t **ptr);
414 void snd_seq_queue_info_free(snd_seq_queue_info_t *ptr);
415 void snd_seq_queue_info_copy(snd_seq_queue_info_t *dst, const snd_seq_queue_info_t *src);
416
417 int snd_seq_queue_info_get_queue(const snd_seq_queue_info_t *info);
418 const char *snd_seq_queue_info_get_name(const snd_seq_queue_info_t *info);
419 int snd_seq_queue_info_get_owner(const snd_seq_queue_info_t *info);
420 int snd_seq_queue_info_get_locked(const snd_seq_queue_info_t *info);
421 unsigned int snd_seq_queue_info_get_flags(const snd_seq_queue_info_t *info);
422
423 void snd_seq_queue_info_set_name(snd_seq_queue_info_t *info, const char *name);
424 void snd_seq_queue_info_set_owner(snd_seq_queue_info_t *info, int owner);
425 void snd_seq_queue_info_set_locked(snd_seq_queue_info_t *info, int locked);
426 void snd_seq_queue_info_set_flags(snd_seq_queue_info_t *info, unsigned int flags);
427
428 int snd_seq_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info);
429 int snd_seq_alloc_named_queue(snd_seq_t *seq, const char *name);
430 int snd_seq_alloc_queue(snd_seq_t *handle);
431 int snd_seq_free_queue(snd_seq_t *handle, int q);
432 int snd_seq_get_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
433 int snd_seq_set_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
434 int snd_seq_query_named_queue(snd_seq_t *seq, const char *name);
435
436 int snd_seq_get_queue_usage(snd_seq_t *handle, int q);
437 int snd_seq_set_queue_usage(snd_seq_t *handle, int q, int used);
438
439 /*
440 */
441 size_t snd_seq_queue_status_sizeof(void);
443 #define snd_seq_queue_status_alloca(ptr) \
444 __snd_alloca(ptr, snd_seq_queue_status)
445 int snd_seq_queue_status_malloc(snd_seq_queue_status_t **ptr);
446 void snd_seq_queue_status_free(snd_seq_queue_status_t *ptr);
447 void snd_seq_queue_status_copy(snd_seq_queue_status_t *dst, const snd_seq_queue_status_t *src);
448
449 int snd_seq_queue_status_get_queue(const snd_seq_queue_status_t *info);
450 int snd_seq_queue_status_get_events(const snd_seq_queue_status_t *info);
451 snd_seq_tick_time_t snd_seq_queue_status_get_tick_time(const snd_seq_queue_status_t *info);
452 const snd_seq_real_time_t *snd_seq_queue_status_get_real_time(const snd_seq_queue_status_t *info);
453 unsigned int snd_seq_queue_status_get_status(const snd_seq_queue_status_t *info);
454
455 int snd_seq_get_queue_status(snd_seq_t *handle, int q, snd_seq_queue_status_t *status);
456
457 /*
458 */
459 size_t snd_seq_queue_tempo_sizeof(void);
461 #define snd_seq_queue_tempo_alloca(ptr) \
462 __snd_alloca(ptr, snd_seq_queue_tempo)
463 int snd_seq_queue_tempo_malloc(snd_seq_queue_tempo_t **ptr);
464 void snd_seq_queue_tempo_free(snd_seq_queue_tempo_t *ptr);
465 void snd_seq_queue_tempo_copy(snd_seq_queue_tempo_t *dst, const snd_seq_queue_tempo_t *src);
466
467 int snd_seq_queue_tempo_get_queue(const snd_seq_queue_tempo_t *info);
468 unsigned int snd_seq_queue_tempo_get_tempo(const snd_seq_queue_tempo_t *info);
469 int snd_seq_queue_tempo_get_ppq(const snd_seq_queue_tempo_t *info);
470 unsigned int snd_seq_queue_tempo_get_skew(const snd_seq_queue_tempo_t *info);
471 unsigned int snd_seq_queue_tempo_get_skew_base(const snd_seq_queue_tempo_t *info);
472 void snd_seq_queue_tempo_set_tempo(snd_seq_queue_tempo_t *info, unsigned int tempo);
473 void snd_seq_queue_tempo_set_ppq(snd_seq_queue_tempo_t *info, int ppq);
474 void snd_seq_queue_tempo_set_skew(snd_seq_queue_tempo_t *info, unsigned int skew);
475 void snd_seq_queue_tempo_set_skew_base(snd_seq_queue_tempo_t *info, unsigned int base);
476
477 int snd_seq_get_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
478 int snd_seq_set_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
479
480 /*
481 */
482
484 typedef enum {
485 SND_SEQ_TIMER_ALSA = 0, /* ALSA timer */
486 SND_SEQ_TIMER_MIDI_CLOCK = 1, /* Midi Clock (CLOCK event) */
487 SND_SEQ_TIMER_MIDI_TICK = 2 /* Midi Timer Tick (TICK event */
488 } snd_seq_queue_timer_type_t;
489
490 size_t snd_seq_queue_timer_sizeof(void);
492 #define snd_seq_queue_timer_alloca(ptr) \
493 __snd_alloca(ptr, snd_seq_queue_timer)
494 int snd_seq_queue_timer_malloc(snd_seq_queue_timer_t **ptr);
495 void snd_seq_queue_timer_free(snd_seq_queue_timer_t *ptr);
496 void snd_seq_queue_timer_copy(snd_seq_queue_timer_t *dst, const snd_seq_queue_timer_t *src);
497
498 int snd_seq_queue_timer_get_queue(const snd_seq_queue_timer_t *info);
499 snd_seq_queue_timer_type_t snd_seq_queue_timer_get_type(const snd_seq_queue_timer_t *info);
500 const snd_timer_id_t *snd_seq_queue_timer_get_id(const snd_seq_queue_timer_t *info);
501 unsigned int snd_seq_queue_timer_get_resolution(const snd_seq_queue_timer_t *info);
502
503 void snd_seq_queue_timer_set_type(snd_seq_queue_timer_t *info, snd_seq_queue_timer_type_t type);
504 void snd_seq_queue_timer_set_id(snd_seq_queue_timer_t *info, const snd_timer_id_t *id);
505 void snd_seq_queue_timer_set_resolution(snd_seq_queue_timer_t *info, unsigned int resolution);
506
507 int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
508 int snd_seq_set_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
509
519 int snd_seq_free_event(snd_seq_event_t *ev);
520 ssize_t snd_seq_event_length(snd_seq_event_t *ev);
521 int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev);
522 int snd_seq_event_output_buffer(snd_seq_t *handle, snd_seq_event_t *ev);
523 int snd_seq_event_output_direct(snd_seq_t *handle, snd_seq_event_t *ev);
524 int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev);
525 int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer);
526 int snd_seq_drain_output(snd_seq_t *handle);
527 int snd_seq_event_output_pending(snd_seq_t *seq);
528 int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev);
529 int snd_seq_drop_output(snd_seq_t *handle);
530 int snd_seq_drop_output_buffer(snd_seq_t *handle);
531 int snd_seq_drop_input(snd_seq_t *handle);
532 int snd_seq_drop_input_buffer(snd_seq_t *handle);
533
535 typedef struct _snd_seq_remove_events snd_seq_remove_events_t;
536
538 #define SND_SEQ_REMOVE_INPUT (1<<0)
539 #define SND_SEQ_REMOVE_OUTPUT (1<<1)
540 #define SND_SEQ_REMOVE_DEST (1<<2)
541 #define SND_SEQ_REMOVE_DEST_CHANNEL (1<<3)
542 #define SND_SEQ_REMOVE_TIME_BEFORE (1<<4)
543 #define SND_SEQ_REMOVE_TIME_AFTER (1<<5)
544 #define SND_SEQ_REMOVE_TIME_TICK (1<<6)
545 #define SND_SEQ_REMOVE_EVENT_TYPE (1<<7)
546 #define SND_SEQ_REMOVE_IGNORE_OFF (1<<8)
547 #define SND_SEQ_REMOVE_TAG_MATCH (1<<9)
549 size_t snd_seq_remove_events_sizeof(void);
550
551 #define snd_seq_remove_events_alloca(ptr) \
552 __snd_alloca(ptr, snd_seq_remove_events)
553 int snd_seq_remove_events_malloc(snd_seq_remove_events_t **ptr);
554 void snd_seq_remove_events_free(snd_seq_remove_events_t *ptr);
555 void snd_seq_remove_events_copy(snd_seq_remove_events_t *dst, const snd_seq_remove_events_t *src);
556
557 unsigned int snd_seq_remove_events_get_condition(const snd_seq_remove_events_t *info);
558 int snd_seq_remove_events_get_queue(const snd_seq_remove_events_t *info);
559 const snd_seq_timestamp_t *snd_seq_remove_events_get_time(const snd_seq_remove_events_t *info);
560 const snd_seq_addr_t *snd_seq_remove_events_get_dest(const snd_seq_remove_events_t *info);
561 int snd_seq_remove_events_get_channel(const snd_seq_remove_events_t *info);
562 int snd_seq_remove_events_get_event_type(const snd_seq_remove_events_t *info);
563 int snd_seq_remove_events_get_tag(const snd_seq_remove_events_t *info);
564
565 void snd_seq_remove_events_set_condition(snd_seq_remove_events_t *info, unsigned int flags);
566 void snd_seq_remove_events_set_queue(snd_seq_remove_events_t *info, int queue);
567 void snd_seq_remove_events_set_time(snd_seq_remove_events_t *info, const snd_seq_timestamp_t *time);
568 void snd_seq_remove_events_set_dest(snd_seq_remove_events_t *info, const snd_seq_addr_t *addr);
569 void snd_seq_remove_events_set_channel(snd_seq_remove_events_t *info, int channel);
570 void snd_seq_remove_events_set_event_type(snd_seq_remove_events_t *info, int type);
571 void snd_seq_remove_events_set_tag(snd_seq_remove_events_t *info, int tag);
572
573 int snd_seq_remove_events(snd_seq_t *handle, snd_seq_remove_events_t *info);
574
584 void snd_seq_set_bit(int nr, void *array);
585 void snd_seq_unset_bit(int nr, void *array);
586 int snd_seq_change_bit(int nr, void *array);
587 int snd_seq_get_bit(int nr, void *array);
588
599 /* event type macros */
600 enum {
601 SND_SEQ_EVFLG_RESULT,
602 SND_SEQ_EVFLG_NOTE,
603 SND_SEQ_EVFLG_CONTROL,
604 SND_SEQ_EVFLG_QUEUE,
605 SND_SEQ_EVFLG_SYSTEM,
606 SND_SEQ_EVFLG_MESSAGE,
607 SND_SEQ_EVFLG_CONNECTION,
608 SND_SEQ_EVFLG_SAMPLE,
609 SND_SEQ_EVFLG_USERS,
610 SND_SEQ_EVFLG_INSTR,
611 SND_SEQ_EVFLG_QUOTE,
612 SND_SEQ_EVFLG_NONE,
613 SND_SEQ_EVFLG_RAW,
614 SND_SEQ_EVFLG_FIXED,
615 SND_SEQ_EVFLG_VARIABLE,
616 SND_SEQ_EVFLG_VARUSR
617 };
618
619 enum {
620 SND_SEQ_EVFLG_NOTE_ONEARG,
621 SND_SEQ_EVFLG_NOTE_TWOARG
622 };
623
624 enum {
625 SND_SEQ_EVFLG_QUEUE_NOARG,
626 SND_SEQ_EVFLG_QUEUE_TICK,
627 SND_SEQ_EVFLG_QUEUE_TIME,
628 SND_SEQ_EVFLG_QUEUE_VALUE
629 };
630
636 extern const unsigned int snd_seq_event_types[];
637
638 #define _SND_SEQ_TYPE(x) (1<<(x))
639 #define _SND_SEQ_TYPE_OPT(x) ((x)<<24)
642 #define snd_seq_type_check(ev,x) (snd_seq_event_types[(ev)->type] & _SND_SEQ_TYPE(x))
643
645 #define snd_seq_ev_is_result_type(ev) \
646 snd_seq_type_check(ev, SND_SEQ_EVFLG_RESULT)
647
648 #define snd_seq_ev_is_note_type(ev) \
649 snd_seq_type_check(ev, SND_SEQ_EVFLG_NOTE)
650
651 #define snd_seq_ev_is_control_type(ev) \
652 snd_seq_type_check(ev, SND_SEQ_EVFLG_CONTROL)
653
654 #define snd_seq_ev_is_channel_type(ev) \
655 (snd_seq_event_types[(ev)->type] & (_SND_SEQ_TYPE(SND_SEQ_EVFLG_NOTE) | _SND_SEQ_TYPE(SND_SEQ_EVFLG_CONTROL)))
656
658 #define snd_seq_ev_is_queue_type(ev) \
659 snd_seq_type_check(ev, SND_SEQ_EVFLG_QUEUE)
660
661 #define snd_seq_ev_is_message_type(ev) \
662 snd_seq_type_check(ev, SND_SEQ_EVFLG_MESSAGE)
663
664 #define snd_seq_ev_is_subscribe_type(ev) \
665 snd_seq_type_check(ev, SND_SEQ_EVFLG_CONNECTION)
666
667 #define snd_seq_ev_is_sample_type(ev) \
668 snd_seq_type_check(ev, SND_SEQ_EVFLG_SAMPLE)
669
670 #define snd_seq_ev_is_user_type(ev) \
671 snd_seq_type_check(ev, SND_SEQ_EVFLG_USERS)
672
673 #define snd_seq_ev_is_instr_type(ev) \
674 snd_seq_type_check(ev, SND_SEQ_EVFLG_INSTR)
675
676 #define snd_seq_ev_is_fixed_type(ev) \
677 snd_seq_type_check(ev, SND_SEQ_EVFLG_FIXED)
678
679 #define snd_seq_ev_is_variable_type(ev) \
680 snd_seq_type_check(ev, SND_SEQ_EVFLG_VARIABLE)
681
682 #define snd_seq_ev_is_varusr_type(ev) \
683 snd_seq_type_check(ev, SND_SEQ_EVFLG_VARUSR)
684
685 #define snd_seq_ev_is_reserved(ev) \
686 (! snd_seq_event_types[(ev)->type])
687
692 #define snd_seq_ev_is_prior(ev) \
693 (((ev)->flags & SND_SEQ_PRIORITY_MASK) == SND_SEQ_PRIORITY_HIGH)
694
696 #define snd_seq_ev_length_type(ev) \
697 ((ev)->flags & SND_SEQ_EVENT_LENGTH_MASK)
698
699 #define snd_seq_ev_is_fixed(ev) \
700 (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_FIXED)
701
702 #define snd_seq_ev_is_variable(ev) \
703 (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_VARIABLE)
704
705 #define snd_seq_ev_is_varusr(ev) \
706 (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_VARUSR)
707
709 #define snd_seq_ev_timestamp_type(ev) \
710 ((ev)->flags & SND_SEQ_TIME_STAMP_MASK)
711
712 #define snd_seq_ev_is_tick(ev) \
713 (snd_seq_ev_timestamp_type(ev) == SND_SEQ_TIME_STAMP_TICK)
714
715 #define snd_seq_ev_is_real(ev) \
716 (snd_seq_ev_timestamp_type(ev) == SND_SEQ_TIME_STAMP_REAL)
717
719 #define snd_seq_ev_timemode_type(ev) \
720 ((ev)->flags & SND_SEQ_TIME_MODE_MASK)
721
722 #define snd_seq_ev_is_abstime(ev) \
723 (snd_seq_ev_timemode_type(ev) == SND_SEQ_TIME_MODE_ABS)
724
725 #define snd_seq_ev_is_reltime(ev) \
726 (snd_seq_ev_timemode_type(ev) == SND_SEQ_TIME_MODE_REL)
727
729 #define snd_seq_ev_is_direct(ev) \
730 ((ev)->queue == SND_SEQ_QUEUE_DIRECT)
731
734 #ifdef __cplusplus
735 }
736 #endif
737
738 #endif /* __ALSA_SEQ_H */
739
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:4489
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:2060
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:3244
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:1982
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:3649
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:3043
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:3083
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:3549
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:1671
snd_seq_real_time_t
Definition: seq_event.h:191
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:2086
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:4346
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:2047
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:2514
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:2303
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:3736
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:4679
snd_timer_id_t
struct _snd_timer_id snd_timer_id_t
Definition: timer.h:47
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:2630
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:1773
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:2229
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:2715
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:3523
snd_seq_get_bit
int snd_seq_get_bit(int nr, void *array)
get a bit flag state
Definition: seq.c:4850
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:4437
snd_seq_queue_timer_type_t
snd_seq_queue_timer_type_t
Definition: seq.h:484
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:4309
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:1407
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:1588
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:3496
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:3575
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:3686
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:4333
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:2759
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:1453
snd_seq_query_subs_type_t
snd_seq_query_subs_type_t
Definition: seq.h:354
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:1730
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:2698
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:3320
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:2812
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:2825
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:3369
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:2955
snd_seq_tick_time_t
unsigned int snd_seq_tick_time_t
Definition: seq_event.h:197
SND_SEQ_TYPE_INET
Definition: seq.h:65
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_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:1906
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:3383
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:2425
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:4270
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:4757
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:1483
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:3298
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:3421
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:3604
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:3980
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:1856
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:2501
snd_seq_change_bit
int snd_seq_change_bit(int nr, void *array)
change a bit flag
Definition: seq.c:4838
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:2864
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:2942
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:3148
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:1302
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:3673
snd_seq_client_pool_sizeof
size_t snd_seq_client_pool_sizeof(void)
get size of snd_seq_client_pool_t
Definition: seq.c:4646
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:1943
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:1312
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:2994
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:4007
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:2773
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:2034
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:2890
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:1522
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:1956
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:1256
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:3710
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:2877
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:3588
SND_SEQ_USER_CLIENT
Definition: seq.h:129
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:3434
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:2355
snd_seq_queue_timer_sizeof
size_t snd_seq_queue_timer_sizeof(void)
get size of snd_seq_queue_timer_t
Definition: seq.c:3663
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:3762
snd_seq_queue_tempo_sizeof
size_t snd_seq_queue_tempo_sizeof(void)
get size of snd_seq_queue_tempo_t
Definition: seq.c:3463
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:2662
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:2526
snd_seq_client_info_sizeof
size_t snd_seq_client_info_sizeof(void)
get size of snd_seq_client_info_t
Definition: seq.c:1420
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:3359
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:1496
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:3277
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:3867
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:1004
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:4779
SND_SEQ_TYPE_SHM
Definition: seq.h:64
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:3562
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:2646
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:3821
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:1929
SND_SEQ_QUERY_SUBS_READ
Definition: seq.h:355
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:4724
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:2799
snd_seq_name
const char * snd_seq_name(snd_seq_t *seq)
get identifier of sequencer handle
Definition: seq.c:800
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:3617
snd_seq_queue_timer_t
struct _snd_seq_queue_timer snd_seq_queue_timer_t
Definition: seq.h:404
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:2125
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:2287
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:1704
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:4385
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:3396
snd_seq_event_types
const unsigned int snd_seq_event_types[]
Definition: seq_event.c:15
snd_seq_client_type_t
snd_seq_client_type_t
Definition: seq.h:128
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:4359
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:2177
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:4296
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:2680
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:4057
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:1365
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:3788
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:1326
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:4372
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:2539
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:2112
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:2151
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:1878
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:4691
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:2552
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:3020
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:3260
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:4806
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:2138
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:4713
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:3109
snd_seq_query_subscribe_set_index
void snd_seq_query_subscribe_set_index(snd_seq_query_subscribe_t *info, int _index)
Set the subscriber&#39;s index to be queried.
Definition: seq.c:2968
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:2617
SND_SEQ_KERNEL_CLIENT
Definition: seq.h:130
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:4791
snd_seq_event_output
int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev)
output an event
Definition: seq.c:3900
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:1995
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_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:2073
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:2478
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:1650
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:3804
snd_seq_nonblock
int snd_seq_nonblock(snd_seq_t *handle, int nonblock)
Set nonblock mode.
Definition: seq.c:1150
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:4502
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:1607
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:1509
snd_seq_drain_output
int snd_seq_drain_output(snd_seq_t *handle)
drain output buffer to sequencer
Definition: seq.c:4028
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:2491
snd_seq_close
int snd_seq_close(snd_seq_t *handle)
Close the sequencer.
Definition: seq.c:1037
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:1391
snd_seq_addr_t
Definition: seq_event.h:178
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:1467
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:3749
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:1127
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:2099
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:3176
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:3057
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:2242
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:3924
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:3070
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:4593
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:1064
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:4702
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:1352
snd_seq_queue_tempo_t
struct _snd_seq_queue_tempo snd_seq_queue_tempo_t
Definition: seq.h:402
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:3096
snd_seq_port_info_sizeof
size_t snd_seq_port_info_sizeof(void)
get size of snd_seq_port_info_t
Definition: seq.c:1896
snd_seq_timestamp_t
Definition: seq_event.h:200
snd_seq_t
struct _snd_seq snd_seq_t
Definition: seq.h:47
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:3409
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:2021
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:4319
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:1629
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:2450
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:3135
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:1193
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:4746
snd_seq_queue_status_sizeof
size_t snd_seq_queue_status_sizeof(void)
get size of snd_seq_queue_status_t
Definition: seq.c:3336
snd_seq_alloc_queue
int snd_seq_alloc_queue(snd_seq_t *handle)
allocate a queue
Definition: seq.c:3213
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:2164
snd_seq_query_subscribe_t
struct _snd_seq_query_subscribe snd_seq_query_subscribe_t
Definition: seq.h:351
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:4199
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:1717
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:2271
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:2604
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:4398
snd_seq_queue_status_t
struct _snd_seq_queue_status snd_seq_queue_status_t
Definition: seq.h:400
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:2255
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:1691
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:1289
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:4223
snd_seq_unset_bit
void snd_seq_unset_bit(int nr, void *array)
unset a bit flag
Definition: seq.c:4830
snd_seq_port_subscribe_sizeof
size_t snd_seq_port_subscribe_sizeof(void)
get size of snd_seq_port_subscribe_t
Definition: seq.c:2468
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:3195
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:4656
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:4411
SND_SEQ_QUERY_SUBS_WRITE
Definition: seq.h:356
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:1211
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:1097
snd_seq_client_pool_t
struct _snd_seq_client_pool snd_seq_client_pool_t
Definition: seq.h:172
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:3632
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:1553
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:2838
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:4735
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:1443
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:3510
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:2786
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:2591
snd_seq_client_id
int snd_seq_client_id(snd_seq_t *handle)
Get the client id.
Definition: seq.c:1176
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:1757
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:3033
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:1339
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:1430
snd_seq_event_t
Definition: seq_event.h:296
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:3346
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:2929
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:2392
snd_seq_drop_output
int snd_seq_drop_output(snd_seq_t *handle)
remove all events on output buffer
Definition: seq.c:4253
snd_config_t
struct _snd_config snd_config_t
Internal structure for a configuration node object.
Definition: conf.h:69
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:3450
snd_seq_remove_events_t
struct _snd_seq_remove_events snd_seq_remove_events_t
Definition: seq.h:535
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:2916
snd_seq_system_info_t
struct _snd_seq_system_info snd_seq_system_info_t
Definition: seq.h:95
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:2903
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:2411
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:1820
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:3161
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:4424
snd_seq_query_subscribe_sizeof
size_t snd_seq_query_subscribe_sizeof(void)
get size of snd_seq_query_subscribe_t
Definition: seq.c:2726
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:3723
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:2216
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:3486
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:1969
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:1919
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:1795
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:2008
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:2190
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:3473
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:4768
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:4152
SND_SEQ_TYPE_HW
Definition: seq.h:63
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:4463
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:2565
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:2749
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:4669
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:1840
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:3775
ptr
void * ptr
Definition: seq_event.h:199
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:2203
snd_seq_free_queue
int snd_seq_free_queue(snd_seq_t *handle, int q)
delete the specified queue
Definition: seq.c:3226
snd_seq_queue_info_t
struct _snd_seq_queue_info snd_seq_queue_info_t
Definition: seq.h:398
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:3696
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:3536
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:1229
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:2578
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:4236
snd_seq_client_info_t
struct _snd_seq_client_info snd_seq_client_info_t
Definition: seq.h:125
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:4450
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:1378
snd_seq_set_bit
void snd_seq_set_bit(int nr, void *array)
set a bit flag
Definition: seq.c:4822
snd_seq_port_info_t
struct _snd_seq_port_info snd_seq_port_info_t
Definition: seq.h:207
snd_seq_system_info_sizeof
size_t snd_seq_system_info_sizeof(void)
Get size of snd_seq_system_info_t.
Definition: seq.c:1279
snd_seq_free_event
int snd_seq_free_event(snd_seq_event_t *ev)
(DEPRECATED) free an event
Definition: seq.c:3856
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:1744
snd_seq_port_subscribe_t
struct _snd_seq_port_subscribe snd_seq_port_subscribe_t
Definition: seq.h:319
snd_seq_type_t
snd_seq_type_t
Definition: seq.h:62
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:2851
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:2372
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:4476
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:2736
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:3122