Re: [LAD] jack client autoconnection

From: Kjetil S. Matheussen <k.s.matheussen@email-addr-hidden>
Date: Mon Feb 04 2008 - 19:16:38 EET

Fons Adriaensen:
>
> On Mon, Feb 04, 2008 at 03:32:23PM +0100, Fons Adriaensen wrote:
>
>> Where jack_autoconnect() would use environment variables,
>> read .rc files, invoke the Buddha, or consult Paul Davis or
>> the oracle of Delphi to find out which ports to use, but
>> without requiring any special support from jackd itself.
>
> The code required is much shorter than the length of this
> thread so far, so I take the liberty to post it.
> Quickly but not fully tested.
>
>

I would say that your function is a connect-many-ports-at-once
function, not an autoconnect function.

What I'm thinking is that the jackd program has an extra
option called "--autoconnect-ports / -ap", which contains
a comma-separated list of port names. If its not supplied,
or "--no-autoconnect / -no" is not supplied either,

   jack_autoconnect(client,num_ports,port);

will connect to the physical ports.

This requires some modification to jack.
But it shouln't be that much of a work.

Besides, two other functions are needed as well:

int jack_get_num_autoconnect_playback_ports(void);
int jack_get_num_autoconnect_record_ports(void);

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Mon Feb 4 20:15:05 2008

This archive was generated by hypermail 2.1.8 : Mon Feb 04 2008 - 20:15:05 EET