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