[LAD] jack client autoconnection

Bob Ham rah at bash.sh
Mon Feb 4 13:52:32 UTC 2008


On Fri, 2008-02-01 at 19:34 +0100, Kjetil S. Matheussen wrote:

>   int jack_autoconnect_playback (jack_client_t *,
>                                  int portnum,
>                                  const char *source_port);
>   int jack_autoconnect_record (jack_client_t *,
>                                int portnum,
>                                const char *destination_port);
>
> The reason is that this API will make it easier
> for programs to make autoconnection configurabe.
> Autoconnecting the old way (which includes finding
> the physical ports and/or checking environment variables
> for ports to connect to, etc.) is a lot more 
> hassle than just calling the functions above.

Even less hassle is for clients to do nothing at all and leave the whole
business entirely for jackd.  I suggest the following function instead:

  int jack_set_autoconnect(jack_client_t *, int autoconnect);

This enables a control interface that can present the user with a simple
system-wide toggle switch that would dictate whether or not ports are
automatically connected.

Bob

-- 
Bob Ham <rah at bash.sh>




More information about the Linux-audio-dev mailing list