* Re: snd_seq_system_info_get_cur_ports function
@ 2013-07-28 5:06 Jose B
2013-07-29 19:52 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: Jose B @ 2013-07-28 5:06 UTC (permalink / raw)
To: alsa-devel
Dear Devs,
I've been working on a wrapper to oversimplify using the alsa midi
sequencer, and for it 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. I noticed there is no function for getting the
current port count but there is one for getting the current number of
sequencer clients :
snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info)
Shouldnt there be a corresponding function for getting the current port
count as seen below? Or is it just missing from the documentation?
snd_seq_system_info_get_cur_ports(const snd_seq_system_info_t *info)
-- It doesn't show in code::blocks' autocomplete so i'm guessing it
wasn't written yet.
Is anyone willing to check this out please? It would be really handy to
have this func.
Thanks, and happy dev-ing
Jose'
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: snd_seq_system_info_get_cur_ports function
2013-07-28 5:06 snd_seq_system_info_get_cur_ports function Jose B
@ 2013-07-29 19:52 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2013-07-29 19:52 UTC (permalink / raw)
To: Jose B; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-29 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-28 5:06 snd_seq_system_info_get_cur_ports function Jose B
2013-07-29 19:52 ` Clemens Ladisch
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.