Re: [LAD] jack client autoconnection

From: Bob Ham <rah@email-addr-hidden>
Date: Mon Feb 04 2008 - 15:52:32 EET

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@email-addr-hidden>
_______________________________________________
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 16:15:04 2008

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