Re: [LAD] Finding ALSA sequencer client/port numbers

From: Gordon JC Pearce <gordonjcp@email-addr-hidden>
Date: Sat Apr 23 2011 - 12:43:20 EEST

On Fri, 2011-04-22 at 19:22 -0400, Paul Davis wrote:

> > But surely, the client IDs are a moving target. I want to connect
> > to a specific instance of ZynaddsubFX, not to the program that was
> > the second one to get an ALSA ID...
> >
> > Am I missing something?
>
> i don't think so. but since, as dave pointed out, there is no
> particular mapping between client IDs and names, there's really no way
> to do this. i think. like i said, i consider the whole design totally
> FUBAR'ed. if you use numeric ID's you're screwed because the client ID
> may change; if you use names, you're screwed because you can't map
> reliably from names to the numeric ID's required by the API. that's
> how it looks to me, anyway.

Well, hang on... can't you force a client to take a particular ID? You
can do that with the hardware addresses by specifying it in asound.conf
so your MIDI interfaces stay in the same place across reboots (otherwise
it's a race to see which interface initialises first).

Gordon MM0YEQ

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Apr 23 16:15:01 2011

This archive was generated by hypermail 2.1.8 : Sat Apr 23 2011 - 16:15:01 EEST