All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Jose B <jose.cuerv0@yahoo.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_seq_system_info_get_cur_ports function
Date: Mon, 29 Jul 2013 21:52:49 +0200	[thread overview]
Message-ID: <51F6C811.4070501@ladisch.de> (raw)
In-Reply-To: <51F4A6C0.1060505@yahoo.com>

Jose B wrote:
> Shouldnt there be a function for getting the current port count as seen below?
>
> snd_seq_system_info_get_cur_ports(const snd_seq_system_info_t *info)

There is no such value:
<https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/sound/asequencer.h#n308>

> I was writing a function to quickly check if any new ports were registered
> on the sequencer after the application using the wrapper starts up.

The number of ports is not helpful for detecting all changes.

Subscribe to port 0:1 (SND_SEQ_CLIENT_SYSTEM:SND_SEQ_PORT_SYSTEM_ANNOUNCE) to
receive events for any changes.


Regards,
Clemens

      reply	other threads:[~2013-07-29 19:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28  5:06 snd_seq_system_info_get_cur_ports function Jose B
2013-07-29 19:52 ` Clemens Ladisch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51F6C811.4070501@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=jose.cuerv0@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.