[LAD] jack client autoconnection

Fons Adriaensen fons at kokkinizita.net
Mon Feb 4 14:32:23 UTC 2008


On Mon, Feb 04, 2008 at 03:14:54PM +0100, Kjetil S. Matheussen wrote:

> How about this interface then?
> 
> void jack_enable_autoconnect(jack_client_t *);
> void jack_disable_autoconnect(jack_client_t *);
> 
> And then a typical playback client would work like this:
> 
> jack_client_t *client=...
> jack_enable_autoconnect(client);
> jack_port_t *out_port[0]=jack_port_register(client,...);
> jack_port_t *out_port[1]=jack_port_register(client,...);
> jack_disable_autoconnect(client);

Or this one:


jack_client_t *client=...
jack_port_t *out_port[0]=jack_port_register(client,...);
jack_port_t *out_port[1]=jack_port_register(client,...);
connected = jack_autoconnect (2, out_port);

(one less call !!!)

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.

In other words, ** you could write this function today **.
The functionality you want does not require any changes
to jack.

It may end up one day in libjack or in some other place
from where it can be reused.

-- 
FA

Laboratorio di Acustica ed Elettroacustica
Parma, Italia

Lascia la spina, cogli la rosa.




More information about the Linux-audio-dev mailing list