Lines Matching refs:subs
99 static void list_each_subs(snd_seq_t *seq, snd_seq_query_subscribe_t *subs, int type, const char *msg)
102 snd_seq_query_subscribe_set_type(subs, type);
103 snd_seq_query_subscribe_set_index(subs, 0);
104 while (snd_seq_query_port_subscribers(seq, subs) >= 0) {
110 addr = snd_seq_query_subscribe_get_addr(subs);
112 if (snd_seq_query_subscribe_get_exclusive(subs))
114 if (snd_seq_query_subscribe_get_time_update(subs))
116 (snd_seq_query_subscribe_get_time_real(subs) ? "real" : "tick"),
117 snd_seq_query_subscribe_get_queue(subs));
118 snd_seq_query_subscribe_set_index(subs, snd_seq_query_subscribe_get_index(subs) + 1);
129 snd_seq_query_subscribe_t *subs;
130 snd_seq_query_subscribe_alloca(&subs);
131 snd_seq_query_subscribe_set_root(subs, addr);
132 list_each_subs(seq, subs, SND_SEQ_QUERY_SUBS_READ, _("Connecting To"));
133 list_each_subs(seq, subs, SND_SEQ_QUERY_SUBS_WRITE, _("Connected From"));
204 snd_seq_port_subscribe_t *subs;
214 snd_seq_port_subscribe_alloca(&subs);
215 snd_seq_port_subscribe_set_queue(subs, snd_seq_query_subscribe_get_queue(query));
216 snd_seq_port_subscribe_set_sender(subs, sender);
217 snd_seq_port_subscribe_set_dest(subs, dest);
218 snd_seq_unsubscribe_port(seq, subs);
226 snd_seq_port_subscribe_t *subs;
236 snd_seq_port_subscribe_alloca(&subs);
237 snd_seq_port_subscribe_set_queue(subs, snd_seq_query_subscribe_get_queue(query));
238 snd_seq_port_subscribe_set_sender(subs, sender);
239 snd_seq_port_subscribe_set_dest(subs, dest);
240 snd_seq_unsubscribe_port(seq, subs);
279 snd_seq_port_subscribe_t *subs;
376 snd_seq_port_subscribe_alloca(&subs);
377 snd_seq_port_subscribe_set_sender(subs, &sender);
378 snd_seq_port_subscribe_set_dest(subs, &dest);
379 snd_seq_port_subscribe_set_queue(subs, queue);
380 snd_seq_port_subscribe_set_exclusive(subs, exclusive);
381 snd_seq_port_subscribe_set_time_update(subs, convert_time);
382 snd_seq_port_subscribe_set_time_real(subs, convert_real);
385 if (snd_seq_get_port_subscription(seq, subs) < 0) {
390 if (snd_seq_unsubscribe_port(seq, subs) < 0) {
396 if (snd_seq_get_port_subscription(seq, subs) == 0) {
401 if (snd_seq_subscribe_port(seq, subs) < 0) {