ALSA project - the C library reference
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 #if !defined(__ASOUNDLIB_H) && !defined(ALSA_LIBRARY_BUILD)
30 /* don't use ALSA_LIBRARY_BUILD define in sources outside alsa-lib */
31 #warning "use #include <alsa/asoundlib.h>, <alsa/seq.h> should not be used directly"
32 #include <alsa/asoundlib.h>
33 #endif
34 
35 #ifndef __ALSA_SEQ_H
36 #define __ALSA_SEQ_H
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
50 #define SND_SEQ_DLSYM_VERSION _dlsym_seq_001
51 
53 typedef struct _snd_seq snd_seq_t;
54 
58 #define SND_SEQ_OPEN_OUTPUT 1
59 #define SND_SEQ_OPEN_INPUT 2
60 #define SND_SEQ_OPEN_DUPLEX (SND_SEQ_OPEN_OUTPUT|SND_SEQ_OPEN_INPUT)
65 #define SND_SEQ_NONBLOCK 0x0001
68 typedef enum _snd_seq_type {
73 
75 #define SND_SEQ_ADDRESS_UNKNOWN 253
76 #define SND_SEQ_ADDRESS_SUBSCRIBERS 254
77 #define SND_SEQ_ADDRESS_BROADCAST 255
80 #define SND_SEQ_CLIENT_SYSTEM 0
82 /*
83  */
84 int snd_seq_open(snd_seq_t **handle, const char *name, int streams, int mode);
85 int snd_seq_open_lconf(snd_seq_t **handle, const char *name, int streams, int mode, snd_config_t *lconf);
86 const char *snd_seq_name(snd_seq_t *seq);
88 int snd_seq_close(snd_seq_t *handle);
89 int snd_seq_poll_descriptors_count(snd_seq_t *handle, short events);
90 int snd_seq_poll_descriptors(snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events);
91 int snd_seq_poll_descriptors_revents(snd_seq_t *seq, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
92 int snd_seq_nonblock(snd_seq_t *handle, int nonblock);
93 int snd_seq_client_id(snd_seq_t *handle);
94 
97 int snd_seq_set_output_buffer_size(snd_seq_t *handle, size_t size);
98 int snd_seq_set_input_buffer_size(snd_seq_t *handle, size_t size);
99 
101 typedef struct _snd_seq_system_info snd_seq_system_info_t;
102 
103 size_t snd_seq_system_info_sizeof(void);
105 #define snd_seq_system_info_alloca(ptr) \
106  __snd_alloca(ptr, snd_seq_system_info)
110 
117 
119 
131 typedef struct _snd_seq_client_info snd_seq_client_info_t;
132 
134 typedef enum snd_seq_client_type {
138 
140 enum {
144 };
145 
146 size_t snd_seq_client_info_sizeof(void);
148 #define snd_seq_client_info_alloca(ptr) \
149  __snd_alloca(ptr, snd_seq_client_info)
153 
161 const unsigned char *snd_seq_client_info_get_event_filter(const snd_seq_client_info_t *info);
164 
167  int group);
171 void snd_seq_client_info_set_name(snd_seq_client_info_t *info, const char *name);
174 void snd_seq_client_info_set_event_filter(snd_seq_client_info_t *info, unsigned char *filter);
175 void snd_seq_client_info_set_midi_version(snd_seq_client_info_t *info, int midi_version);
177  int group, int enable);
179  int enable);
181 
186 
188 int snd_seq_get_any_client_info(snd_seq_t *handle, int client, snd_seq_client_info_t *info);
191 
192 int snd_seq_get_ump_endpoint_info(snd_seq_t *seq, int client, void *info);
193 int snd_seq_get_ump_block_info(snd_seq_t *seq, int client, int blk, void *info);
194 int snd_seq_set_ump_endpoint_info(snd_seq_t *seq, const void *info);
195 int snd_seq_set_ump_block_info(snd_seq_t *seq, int blk, const void *info);
196 
197 /*
198  */
199 
201 typedef struct _snd_seq_client_pool snd_seq_client_pool_t;
202 
203 size_t snd_seq_client_pool_sizeof(void);
205 #define snd_seq_client_pool_alloca(ptr) \
206  __snd_alloca(ptr, snd_seq_client_pool)
210 
220 
223 
224 
236 typedef struct _snd_seq_port_info snd_seq_port_info_t;
237 
239 #define SND_SEQ_PORT_SYSTEM_TIMER 0
240 #define SND_SEQ_PORT_SYSTEM_ANNOUNCE 1
243 #define SND_SEQ_PORT_CAP_READ (1<<0)
244 #define SND_SEQ_PORT_CAP_WRITE (1<<1)
246 #define SND_SEQ_PORT_CAP_SYNC_READ (1<<2)
247 #define SND_SEQ_PORT_CAP_SYNC_WRITE (1<<3)
249 #define SND_SEQ_PORT_CAP_DUPLEX (1<<4)
251 #define SND_SEQ_PORT_CAP_SUBS_READ (1<<5)
252 #define SND_SEQ_PORT_CAP_SUBS_WRITE (1<<6)
253 #define SND_SEQ_PORT_CAP_NO_EXPORT (1<<7)
254 #define SND_SEQ_PORT_CAP_INACTIVE (1<<8)
255 #define SND_SEQ_PORT_CAP_UMP_ENDPOINT (1<<9)
258 #define SND_SEQ_PORT_DIR_UNKNOWN 0
259 #define SND_SEQ_PORT_DIR_INPUT 1
260 #define SND_SEQ_PORT_DIR_OUTPUT 2
261 #define SND_SEQ_PORT_DIR_BIDIRECTION 3
263 /* port type */
264 
265 #define SND_SEQ_PORT_TYPE_SPECIFIC (1<<0)
266 
267 #define SND_SEQ_PORT_TYPE_MIDI_GENERIC (1<<1)
268 
269 #define SND_SEQ_PORT_TYPE_MIDI_GM (1<<2)
270 
271 #define SND_SEQ_PORT_TYPE_MIDI_GS (1<<3)
272 
273 #define SND_SEQ_PORT_TYPE_MIDI_XG (1<<4)
274 
275 #define SND_SEQ_PORT_TYPE_MIDI_MT32 (1<<5)
276 
277 #define SND_SEQ_PORT_TYPE_MIDI_GM2 (1<<6)
278 
279 #define SND_SEQ_PORT_TYPE_MIDI_UMP (1<<7)
280 
282 #define SND_SEQ_PORT_TYPE_SYNTH (1<<10)
283 
285 #define SND_SEQ_PORT_TYPE_DIRECT_SAMPLE (1<<11)
286 
288 #define SND_SEQ_PORT_TYPE_SAMPLE (1<<12)
289 
290 #define SND_SEQ_PORT_TYPE_HARDWARE (1<<16)
291 
292 #define SND_SEQ_PORT_TYPE_SOFTWARE (1<<17)
293 
294 #define SND_SEQ_PORT_TYPE_SYNTHESIZER (1<<18)
295 
297 #define SND_SEQ_PORT_TYPE_PORT (1<<19)
298 
299 #define SND_SEQ_PORT_TYPE_APPLICATION (1<<20)
300 
301 
302 size_t snd_seq_port_info_sizeof(void);
304 #define snd_seq_port_info_alloca(ptr) \
305  __snd_alloca(ptr, snd_seq_port_info)
309 
313 const char *snd_seq_port_info_get_name(const snd_seq_port_info_t *info);
314 unsigned int snd_seq_port_info_get_capability(const snd_seq_port_info_t *info);
315 unsigned int snd_seq_port_info_get_type(const snd_seq_port_info_t *info);
328 
329 void snd_seq_port_info_set_client(snd_seq_port_info_t *info, int client);
330 void snd_seq_port_info_set_port(snd_seq_port_info_t *info, int port);
332 void snd_seq_port_info_set_name(snd_seq_port_info_t *info, const char *name);
333 void snd_seq_port_info_set_capability(snd_seq_port_info_t *info, unsigned int capability);
334 void snd_seq_port_info_set_type(snd_seq_port_info_t *info, unsigned int type);
342 void snd_seq_port_info_set_direction(snd_seq_port_info_t *info, int direction);
343 void snd_seq_port_info_set_ump_group(snd_seq_port_info_t *info, int ump_group);
345 
347 int snd_seq_delete_port(snd_seq_t *handle, int port);
348 int snd_seq_get_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
349 int snd_seq_get_any_port_info(snd_seq_t *handle, int client, int port, snd_seq_port_info_t *info);
350 int snd_seq_set_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
352 
364 typedef struct _snd_seq_port_subscribe snd_seq_port_subscribe_t;
365 
366 size_t snd_seq_port_subscribe_sizeof(void);
368 #define snd_seq_port_subscribe_alloca(ptr) \
369  __snd_alloca(ptr, snd_seq_port_subscribe)
373 
380 
387 
391 
392 /*
393  */
394 
396 typedef struct _snd_seq_query_subscribe snd_seq_query_subscribe_t;
397 
399 typedef enum {
403 
404 size_t snd_seq_query_subscribe_sizeof(void);
406 #define snd_seq_query_subscribe_alloca(ptr) \
407  __snd_alloca(ptr, snd_seq_query_subscribe)
411 
423 
429 
431 
443 typedef struct _snd_seq_queue_info snd_seq_queue_info_t;
445 typedef struct _snd_seq_queue_status snd_seq_queue_status_t;
447 typedef struct _snd_seq_queue_tempo snd_seq_queue_tempo_t;
449 typedef struct _snd_seq_queue_timer snd_seq_queue_timer_t;
450 
452 #define SND_SEQ_QUEUE_DIRECT 253
454 size_t snd_seq_queue_info_sizeof(void);
455 
456 #define snd_seq_queue_info_alloca(ptr) \
457  __snd_alloca(ptr, snd_seq_queue_info)
461 
463 const char *snd_seq_queue_info_get_name(const snd_seq_queue_info_t *info);
466 unsigned int snd_seq_queue_info_get_flags(const snd_seq_queue_info_t *info);
467 
468 void snd_seq_queue_info_set_name(snd_seq_queue_info_t *info, const char *name);
472 
474 int snd_seq_alloc_named_queue(snd_seq_t *seq, const char *name);
475 int snd_seq_alloc_queue(snd_seq_t *handle);
476 int snd_seq_free_queue(snd_seq_t *handle, int q);
479 int snd_seq_query_named_queue(snd_seq_t *seq, const char *name);
480 
481 int snd_seq_get_queue_usage(snd_seq_t *handle, int q);
482 int snd_seq_set_queue_usage(snd_seq_t *handle, int q, int used);
483 
484 /*
485  */
486 size_t snd_seq_queue_status_sizeof(void);
488 #define snd_seq_queue_status_alloca(ptr) \
489  __snd_alloca(ptr, snd_seq_queue_status)
493 
499 
501 
502 /*
503  */
504 size_t snd_seq_queue_tempo_sizeof(void);
506 #define snd_seq_queue_tempo_alloca(ptr) \
507  __snd_alloca(ptr, snd_seq_queue_tempo)
511 
513 unsigned int snd_seq_queue_tempo_get_tempo(const snd_seq_queue_tempo_t *info);
515 unsigned int snd_seq_queue_tempo_get_skew(const snd_seq_queue_tempo_t *info);
520 void snd_seq_queue_tempo_set_skew(snd_seq_queue_tempo_t *info, unsigned int skew);
521 void snd_seq_queue_tempo_set_skew_base(snd_seq_queue_tempo_t *info, unsigned int base);
522 void snd_seq_queue_tempo_set_tempo_base(snd_seq_queue_tempo_t *info, unsigned int tempo_base);
523 
527 
528 /*
529  */
530 
532 typedef enum {
533  SND_SEQ_TIMER_ALSA = 0, /* ALSA timer */
534  SND_SEQ_TIMER_MIDI_CLOCK = 1, /* Midi Clock (CLOCK event) */
535  SND_SEQ_TIMER_MIDI_TICK = 2 /* Midi Timer Tick (TICK event */
537 
538 size_t snd_seq_queue_timer_sizeof(void);
540 #define snd_seq_queue_timer_alloca(ptr) \
541  __snd_alloca(ptr, snd_seq_queue_timer)
545 
550 
553 void snd_seq_queue_timer_set_resolution(snd_seq_queue_timer_t *info, unsigned int resolution);
554 
555 int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
556 int snd_seq_set_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
557 
573 int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer);
574 int snd_seq_drain_output(snd_seq_t *handle);
577 int snd_seq_drop_output(snd_seq_t *handle);
579 int snd_seq_drop_input(snd_seq_t *handle);
581 
583 typedef struct _snd_seq_remove_events snd_seq_remove_events_t;
584 
586 #define SND_SEQ_REMOVE_INPUT (1<<0)
587 #define SND_SEQ_REMOVE_OUTPUT (1<<1)
588 #define SND_SEQ_REMOVE_DEST (1<<2)
589 #define SND_SEQ_REMOVE_DEST_CHANNEL (1<<3)
590 #define SND_SEQ_REMOVE_TIME_BEFORE (1<<4)
591 #define SND_SEQ_REMOVE_TIME_AFTER (1<<5)
592 #define SND_SEQ_REMOVE_TIME_TICK (1<<6)
593 #define SND_SEQ_REMOVE_EVENT_TYPE (1<<7)
594 #define SND_SEQ_REMOVE_IGNORE_OFF (1<<8)
595 #define SND_SEQ_REMOVE_TAG_MATCH (1<<9)
597 size_t snd_seq_remove_events_sizeof(void);
598 
599 #define snd_seq_remove_events_alloca(ptr) \
600  __snd_alloca(ptr, snd_seq_remove_events)
604 
612 
620 
622 
628 
638 void snd_seq_set_bit(int nr, void *array);
639 void snd_seq_unset_bit(int nr, void *array);
640 int snd_seq_change_bit(int nr, void *array);
641 int snd_seq_get_bit(int nr, void *array);
642 
653 /* event type macros */
654 enum {
655  SND_SEQ_EVFLG_RESULT,
656  SND_SEQ_EVFLG_NOTE,
657  SND_SEQ_EVFLG_CONTROL,
658  SND_SEQ_EVFLG_QUEUE,
659  SND_SEQ_EVFLG_SYSTEM,
660  SND_SEQ_EVFLG_MESSAGE,
661  SND_SEQ_EVFLG_CONNECTION,
662  SND_SEQ_EVFLG_SAMPLE,
663  SND_SEQ_EVFLG_USERS,
664  SND_SEQ_EVFLG_INSTR,
665  SND_SEQ_EVFLG_QUOTE,
666  SND_SEQ_EVFLG_NONE,
667  SND_SEQ_EVFLG_RAW,
668  SND_SEQ_EVFLG_FIXED,
669  SND_SEQ_EVFLG_VARIABLE,
670  SND_SEQ_EVFLG_VARUSR
671 };
672 
673 enum {
674  SND_SEQ_EVFLG_NOTE_ONEARG,
675  SND_SEQ_EVFLG_NOTE_TWOARG
676 };
677 
678 enum {
679  SND_SEQ_EVFLG_QUEUE_NOARG,
680  SND_SEQ_EVFLG_QUEUE_TICK,
681  SND_SEQ_EVFLG_QUEUE_TIME,
682  SND_SEQ_EVFLG_QUEUE_VALUE
683 };
684 
690 extern const unsigned int snd_seq_event_types[];
691 
692 #define _SND_SEQ_TYPE(x) (1<<(x))
693 #define _SND_SEQ_TYPE_OPT(x) ((x)<<24)
696 #define snd_seq_type_check(ev,x) (snd_seq_event_types[(ev)->type] & _SND_SEQ_TYPE(x))
697 
699 #define snd_seq_ev_is_result_type(ev) \
700  snd_seq_type_check(ev, SND_SEQ_EVFLG_RESULT)
701 
702 #define snd_seq_ev_is_note_type(ev) \
703  snd_seq_type_check(ev, SND_SEQ_EVFLG_NOTE)
704 
705 #define snd_seq_ev_is_control_type(ev) \
706  snd_seq_type_check(ev, SND_SEQ_EVFLG_CONTROL)
707 
708 #define snd_seq_ev_is_channel_type(ev) \
709  (snd_seq_event_types[(ev)->type] & (_SND_SEQ_TYPE(SND_SEQ_EVFLG_NOTE) | _SND_SEQ_TYPE(SND_SEQ_EVFLG_CONTROL)))
710 
712 #define snd_seq_ev_is_queue_type(ev) \
713  snd_seq_type_check(ev, SND_SEQ_EVFLG_QUEUE)
714 
715 #define snd_seq_ev_is_message_type(ev) \
716  snd_seq_type_check(ev, SND_SEQ_EVFLG_MESSAGE)
717 
718 #define snd_seq_ev_is_subscribe_type(ev) \
719  snd_seq_type_check(ev, SND_SEQ_EVFLG_CONNECTION)
720 
721 #define snd_seq_ev_is_sample_type(ev) \
722  snd_seq_type_check(ev, SND_SEQ_EVFLG_SAMPLE)
723 
724 #define snd_seq_ev_is_user_type(ev) \
725  snd_seq_type_check(ev, SND_SEQ_EVFLG_USERS)
726 
727 #define snd_seq_ev_is_instr_type(ev) \
728  snd_seq_type_check(ev, SND_SEQ_EVFLG_INSTR)
729 
730 #define snd_seq_ev_is_fixed_type(ev) \
731  snd_seq_type_check(ev, SND_SEQ_EVFLG_FIXED)
732 
733 #define snd_seq_ev_is_variable_type(ev) \
734  snd_seq_type_check(ev, SND_SEQ_EVFLG_VARIABLE)
735 
736 #define snd_seq_ev_is_varusr_type(ev) \
737  snd_seq_type_check(ev, SND_SEQ_EVFLG_VARUSR)
738 
739 #define snd_seq_ev_is_reserved(ev) \
740  (! snd_seq_event_types[(ev)->type])
741 
746 #define snd_seq_ev_is_prior(ev) \
747  (((ev)->flags & SND_SEQ_PRIORITY_MASK) == SND_SEQ_PRIORITY_HIGH)
748 
750 #define snd_seq_ev_length_type(ev) \
751  ((ev)->flags & SND_SEQ_EVENT_LENGTH_MASK)
752 
753 #define snd_seq_ev_is_fixed(ev) \
754  (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_FIXED)
755 
756 #define snd_seq_ev_is_variable(ev) \
757  (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_VARIABLE)
758 
759 #define snd_seq_ev_is_varusr(ev) \
760  (snd_seq_ev_length_type(ev) == SND_SEQ_EVENT_LENGTH_VARUSR)
761 
763 #define snd_seq_ev_timestamp_type(ev) \
764  ((ev)->flags & SND_SEQ_TIME_STAMP_MASK)
765 
766 #define snd_seq_ev_is_tick(ev) \
767  (snd_seq_ev_timestamp_type(ev) == SND_SEQ_TIME_STAMP_TICK)
768 
769 #define snd_seq_ev_is_real(ev) \
770  (snd_seq_ev_timestamp_type(ev) == SND_SEQ_TIME_STAMP_REAL)
771 
773 #define snd_seq_ev_timemode_type(ev) \
774  ((ev)->flags & SND_SEQ_TIME_MODE_MASK)
775 
776 #define snd_seq_ev_is_abstime(ev) \
777  (snd_seq_ev_timemode_type(ev) == SND_SEQ_TIME_MODE_ABS)
778 
779 #define snd_seq_ev_is_reltime(ev) \
780  (snd_seq_ev_timemode_type(ev) == SND_SEQ_TIME_MODE_REL)
781 
783 #define snd_seq_ev_is_direct(ev) \
784  ((ev)->queue == SND_SEQ_QUEUE_DIRECT)
785 
787 #define snd_seq_ev_is_ump(ev) \
788  ((ev)->flags & SND_SEQ_EVENT_UMP)
789 
792 #ifdef __cplusplus
793 }
794 #endif
795 
796 #endif /* __ALSA_SEQ_H */
797 
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:5015
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:2337
int snd_seq_get_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info)
obtain queue attributes
Definition: seq.c:3601
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:2259
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:4034
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:3400
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:3440
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:3906
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:1766
Definition: seq_event.h:202
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:2363
int snd_seq_remove_events_get_queue(const snd_seq_remove_events_t *info)
Get the queue as removal condition.
Definition: seq.c:4872
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:2324
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:2871
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:2619
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:4136
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:5205
struct _snd_timer_id snd_timer_id_t
Definition: timer.h:53
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:2987
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:1991
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:2545
int snd_seq_unsubscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub)
unsubscribe a connection between ports
Definition: seq.c:3072
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:3880
int snd_seq_get_bit(int nr, void *array)
get a bit flag state
Definition: seq.c:5376
void snd_seq_remove_events_set_queue(snd_seq_remove_events_t *info, int queue)
Set the queue as removal condition.
Definition: seq.c:4963
snd_seq_queue_timer_type_t
Definition: seq.h:532
int snd_seq_has_queue_tempo_base(snd_seq_t *handle)
inquiry the support of tempo base change
Definition: seq.c:4051
void snd_seq_remove_events_free(snd_seq_remove_events_t *ptr)
frees a previously allocated snd_seq_remove_events_t
Definition: seq.c:4835
int snd_seq_system_info(snd_seq_t *handle, snd_seq_system_info_t *info)
obtain the sequencer system information
Definition: seq.c:1502
int snd_seq_client_info_get_pid(const snd_seq_client_info_t *info)
Get the owning PID.
Definition: seq.c:1683
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:3853
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:3945
void snd_seq_queue_timer_free(snd_seq_queue_timer_t *ptr)
frees a previously allocated snd_seq_queue_timer_t
Definition: seq.c:4086
unsigned int snd_seq_remove_events_get_condition(const snd_seq_remove_events_t *info)
Get the removal condition bits.
Definition: seq.c:4859
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:3116
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:4686
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:1548
snd_seq_query_subs_type_t
Definition: seq.h:399
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:1883
int snd_seq_subscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub)
subscribe a port connection
Definition: seq.c:3055
uint8_t type
Definition: ump_msg.h:183
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:3677
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:3169
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:3182
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:3726
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:3312
unsigned int snd_seq_tick_time_t
Definition: seq_event.h:208
uint8_t status
Definition: ump_msg.h:185
Definition: seq.h:71
int snd_seq_open(snd_seq_t **handle, const char *name, int streams, int mode)
Open the ALSA sequencer.
Definition: seq.c:1050
Definition: seq.h:141
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:2183
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:3740
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:2782
int snd_seq_drop_input(snd_seq_t *handle)
clear input buffer and and remove events in sequencer queue
Definition: seq.c:4796
Definition: seq.h:143
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:5283
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:1578
int snd_seq_get_queue_usage(snd_seq_t *handle, int q)
Get the queue usage flag to the client.
Definition: seq.c:3655
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:3778
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:3974
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:4396
int snd_seq_set_client_info(snd_seq_t *handle, snd_seq_client_info_t *info)
set the current client information
Definition: seq.c:2074
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:2858
int snd_seq_change_bit(int nr, void *array)
change a bit flag
Definition: seq.c:5364
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:3221
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:3299
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:3505
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:1957
Definition: seq_event.h:343
void snd_seq_system_info_free(snd_seq_system_info_t *ptr)
Frees a previously allocated snd_seq_system_info_t.
Definition: seq.c:1397
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:4073
size_t snd_seq_client_pool_sizeof(void)
get size of snd_seq_client_pool_t
Definition: seq.c:5172
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:2220
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:1407
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:1870
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:1974
struct _snd_config snd_config_t
Internal structure for a configuration node object.
Definition: conf.h:74
int snd_seq_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subscribe_t *subs)
query port subscriber list
Definition: seq.c:3351
int snd_seq_event_output_pending(snd_seq_t *seq)
return the size of pending events on output buffer
Definition: seq.c:4424
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:3130
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:2311
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:3247
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:1617
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:2233
int snd_seq_set_input_buffer_size(snd_seq_t *handle, size_t size)
Resize the input buffer.
Definition: seq.c:1347
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:4110
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:3234
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:3958
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:1940
Definition: seq.h:135
uint32_t tempo
Definition: ump_msg.h:191
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:3791
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:2712
size_t snd_seq_queue_timer_sizeof(void)
get size of snd_seq_queue_timer_t
Definition: seq.c:4063
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:4162
size_t snd_seq_queue_tempo_sizeof(void)
get size of snd_seq_queue_tempo_t
Definition: seq.c:3820
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:3019
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:2883
size_t snd_seq_client_info_sizeof(void)
get size of snd_seq_client_info_t
Definition: seq.c:1515
void snd_seq_queue_status_free(snd_seq_queue_status_t *ptr)
frees a previously allocated snd_seq_queue_status_t
Definition: seq.c:3716
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:1591
int snd_seq_query_named_queue(snd_seq_t *seq, const char *name)
query the matching queue with the specified name
Definition: seq.c:3634
ssize_t snd_seq_event_length(snd_seq_event_t *ev)
calculates the (encoded) byte-stream size of the event
Definition: seq.c:4267
int snd_seq_ump_event_output(snd_seq_t *seq, snd_seq_ump_event_t *ev)
output a UMP event
Definition: seq.c:4652
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:1086
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:5305
Definition: seq.h:70
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:3919
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:3003
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:4221
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:2206
Definition: seq.h:400
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:5250
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:3156
const char * snd_seq_name(snd_seq_t *seq)
get identifier of sequencer handle
Definition: seq.c:876
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:3987
struct _snd_seq_queue_timer snd_seq_queue_timer_t
Definition: seq.h:449
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:2402
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:2603
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:1799
int snd_seq_remove_events_get_channel(const snd_seq_remove_events_t *info)
Get the event channel as removal condition.
Definition: seq.c:4911
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:3753
int snd_seq_port_info_get_direction(const snd_seq_port_info_t *info)
Get the direction of the port.
Definition: seq.c:2415
const unsigned int snd_seq_event_types[]
Definition: seq_event.c:15
snd_seq_client_type_t
Definition: seq.h:134
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:4885
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:2493
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:4822
int snd_seq_get_port_subscription(snd_seq_t *handle, snd_seq_port_subscribe_t *sub)
obtain subscription information
Definition: seq.c:3037
int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev)
extract the first event in output buffer
Definition: seq.c:4474
int snd_seq_system_info_get_channels(const snd_seq_system_info_t *info)
Get maximum number of channels.
Definition: seq.c:1460
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:4188
int snd_seq_system_info_get_queues(const snd_seq_system_info_t *info)
Get maximum number of queues.
Definition: seq.c:1421
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:4898
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:2896
void snd_seq_port_info_set_direction(snd_seq_port_info_t *info, int direction)
Set the direction of the port.
Definition: seq.c:2632
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:2389
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:2467
int snd_seq_query_next_client(snd_seq_t *handle, snd_seq_client_info_t *info)
query the next client
Definition: seq.c:2096
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:5217
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:4669
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:2909
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:3377
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:3617
int snd_seq_set_client_pool(snd_seq_t *handle, snd_seq_client_pool_t *info)
set the pool information
Definition: seq.c:5332
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:2454
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:5239
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:3466
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:3325
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:2974
Definition: seq.h:136
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:5317
int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev)
output an event
Definition: seq.c:4302
unsigned int snd_seq_queue_tempo_get_tempo_base(const snd_seq_queue_tempo_t *info)
Get the tempo base of a queue_status container.
Definition: seq.c:3932
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:2272
snd_seq_type_t snd_seq_type(snd_seq_t *seq)
get type of sequencer handle
Definition: seq.c:891
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:2350
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:2835
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:1745
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:4204
int snd_seq_nonblock(snd_seq_t *handle, int nonblock)
Set nonblock mode.
Definition: seq.c:1236
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:5028
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:1702
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:1604
int snd_seq_drain_output(snd_seq_t *handle)
drain output buffer to sequencer
Definition: seq.c:4445
void snd_seq_port_subscribe_free(snd_seq_port_subscribe_t *ptr)
frees a previously allocated snd_seq_port_subscribe_t
Definition: seq.c:2848
int snd_seq_close(snd_seq_t *handle)
Close the sequencer.
Definition: seq.c:1119
void snd_seq_port_info_set_ump_is_midi1(snd_seq_port_info_t *info, int is_midi1)
Set the optional MIDI 1.0 port in MIDI 2.0 UMP Endpoint.
Definition: seq.c:2658
int snd_seq_system_info_get_cur_queues(const snd_seq_system_info_t *info)
Get the current number of queues.
Definition: seq.c:1486
Definition: seq_event.h:189
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:1562
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:4149
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:4726
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:1213
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:2376
int snd_seq_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
create a queue
Definition: seq.c:3533
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:3414
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:2558
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:4336
void snd_seq_queue_tempo_set_tempo_base(snd_seq_queue_tempo_t *info, unsigned int tempo_base)
Set the tempo base of a queue_status container.
Definition: seq.c:4000
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:3427
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:5119
int snd_seq_port_info_get_ump_is_midi1(const snd_seq_port_info_t *info)
Get the status of the optional MIDI 1.0 port in MIDI 2.0 UMP Endpoint.
Definition: seq.c:2441
int snd_seq_poll_descriptors_count(snd_seq_t *handle, short events)
Returns the number of poll descriptors.
Definition: seq.c:1150
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:5228
int snd_seq_system_info_get_ports(const snd_seq_system_info_t *info)
Get maximum number of ports.
Definition: seq.c:1447
struct _snd_seq_queue_tempo snd_seq_queue_tempo_t
Definition: seq.h:447
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:3453
size_t snd_seq_port_info_sizeof(void)
get size of snd_seq_port_info_t
Definition: seq.c:2173
Definition: seq_event.h:211
struct _snd_seq snd_seq_t
Definition: seq.h:53
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:3766
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:2298
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:4845
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:1724
int snd_seq_query_next_port(snd_seq_t *handle, snd_seq_port_info_t *info)
query the next matching port
Definition: seq.c:2807
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:3492
size_t snd_seq_get_output_buffer_size(snd_seq_t *handle)
Return the size of output buffer.
Definition: seq.c:1279
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:5272
size_t snd_seq_queue_status_sizeof(void)
get size of snd_seq_queue_status_t
Definition: seq.c:3693
int snd_seq_alloc_queue(snd_seq_t *handle)
allocate a queue
Definition: seq.c:3570
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:2480
struct _snd_seq_query_subscribe snd_seq_query_subscribe_t
Definition: seq.h:396
int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer)
check events in input buffer
Definition: seq.c:4620
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:1812
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:2587
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:2961
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:4924
struct _snd_seq_queue_status snd_seq_queue_status_t
Definition: seq.h:445
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:2571
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:1786
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:1384
int snd_seq_drop_output_buffer(snd_seq_t *handle)
remove all events on user-space output buffer
Definition: seq.c:4749
void snd_seq_unset_bit(int nr, void *array)
unset a bit flag
Definition: seq.c:5356
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:1825
Definition: seq.h:142
uint8_t channel
Definition: ump_msg.h:186
size_t snd_seq_port_subscribe_sizeof(void)
get size of snd_seq_port_subscribe_t
Definition: seq.c:2825
int snd_seq_get_ump_endpoint_info(snd_seq_t *seq, int client, void *info)
Get UMP Endpoint information.
Definition: seq.c:2109
int snd_seq_alloc_named_queue(snd_seq_t *seq, const char *name)
allocate a queue with the specified name
Definition: seq.c:3552
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:5182
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:4937
Definition: seq.h:401
size_t snd_seq_get_input_buffer_size(snd_seq_t *handle)
Return the size of input buffer.
Definition: seq.c:1302
int snd_seq_poll_descriptors(snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events)
Get poll descriptors.
Definition: seq.c:1183
struct _snd_seq_client_pool snd_seq_client_pool_t
Definition: seq.h:201
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:4017
int snd_seq_client_info_get_card(const snd_seq_client_info_t *info)
Get the sound card number.
Definition: seq.c:1648
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:3195
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:5261
void snd_seq_client_info_free(snd_seq_client_info_t *ptr)
frees a previously allocated snd_seq_client_info_t
Definition: seq.c:1538
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:1926
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:3867
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:2428
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:3143
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:2948
int snd_seq_client_id(snd_seq_t *handle)
Get the client id.
Definition: seq.c:1262
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:1910
void snd_seq_queue_info_free(snd_seq_queue_info_t *ptr)
frees a previously allocated snd_seq_queue_info_t
Definition: seq.c:3390
int snd_seq_system_info_get_clients(const snd_seq_system_info_t *info)
Get maximum number of clients.
Definition: seq.c:1434
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:1525
Definition: seq_event.h:328
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:3703
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:3286
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:2749
uint8_t flags
Definition: ump_msg.h:188
int snd_seq_drop_output(snd_seq_t *handle)
remove all events on output buffer
Definition: seq.c:4779
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:3807
struct _snd_seq_remove_events snd_seq_remove_events_t
Definition: seq.h:583
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:3273
struct _snd_seq_system_info snd_seq_system_info_t
Definition: seq.h:101
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:3260
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:2768
uint16_t time
Definition: ump_msg.h:187
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:1839
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:2038
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:3518
void snd_seq_remove_events_set_condition(snd_seq_remove_events_t *info, unsigned int flags)
Set the removal condition bits.
Definition: seq.c:4950
size_t snd_seq_query_subscribe_sizeof(void)
get size of snd_seq_query_subscribe_t
Definition: seq.c:3083
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:4123
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:2532
void snd_seq_queue_tempo_free(snd_seq_queue_tempo_t *ptr)
frees a previously allocated snd_seq_queue_tempo_t
Definition: seq.c:3843
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:2246
void snd_seq_port_info_free(snd_seq_port_info_t *ptr)
frees a previously allocated snd_seq_port_info_t
Definition: seq.c:2196
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:2013
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:2285
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:2506
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:3830
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:5294
int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev)
retrieve an event from sequencer
Definition: seq.c:4573
Definition: seq.h:69
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:4989
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:2922
void snd_seq_query_subscribe_free(snd_seq_query_subscribe_t *ptr)
frees a previously allocated snd_seq_query_subscribe_t
Definition: seq.c:3106
void snd_seq_client_pool_free(snd_seq_client_pool_t *ptr)
frees a previously allocated snd_seq_client_pool_t
Definition: seq.c:5195
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:2139
int snd_seq_get_client_info(snd_seq_t *handle, snd_seq_client_info_t *info)
obtain the current client information
Definition: seq.c:2058
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:4175
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:2154
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:2519
int snd_seq_free_queue(snd_seq_t *handle, int q)
delete the specified queue
Definition: seq.c:3583
struct _snd_seq_queue_info snd_seq_queue_info_t
Definition: seq.h:443
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:4096
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:3893
int snd_seq_set_output_buffer_size(snd_seq_t *handle, size_t size)
Change the size of output buffer.
Definition: seq.c:1320
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:2935
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:2645
int snd_seq_drop_input_buffer(snd_seq_t *handle)
remove all events on user-space input FIFO
Definition: seq.c:4762
struct _snd_seq_client_info snd_seq_client_info_t
Definition: seq.h:131
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:4976
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:4703
int snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info)
Get the current number of clients.
Definition: seq.c:1473
void snd_seq_set_bit(int nr, void *array)
set a bit flag
Definition: seq.c:5348
struct _snd_seq_port_info snd_seq_port_info_t
Definition: seq.h:236
size_t snd_seq_system_info_sizeof(void)
Get size of snd_seq_system_info_t.
Definition: seq.c:1374
int snd_seq_free_event(snd_seq_event_t *ev)
(DEPRECATED) free an event
Definition: seq.c:4256
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:1897
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:1857
struct _snd_seq_port_subscribe snd_seq_port_subscribe_t
Definition: seq.h:364
int snd_seq_get_ump_block_info(snd_seq_t *seq, int client, int blk, void *info)
Get UMP Block information.
Definition: seq.c:2125
snd_seq_type_t
Definition: seq.h:68
uint8_t group
Definition: ump_msg.h:184
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:3208
int snd_seq_delete_port(snd_seq_t *handle, int port)
delete a sequencer port on the current client
Definition: seq.c:2729
void snd_seq_remove_events_set_channel(snd_seq_remove_events_t *info, int channel)
Set the channel as removal condition.
Definition: seq.c:5002
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:3093
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:3479