From owner-freebsd-multimedia@FreeBSD.ORG Fri Aug 10 03:22:49 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF4061065673 for ; Fri, 10 Aug 2012 03:22:49 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 942638FC0C for ; Fri, 10 Aug 2012 03:22:49 +0000 (UTC) Received: by obbun3 with SMTP id un3so2084764obb.13 for ; Thu, 09 Aug 2012 20:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8UMtw6WkYgkuplhekQaGmUzqL1WG248lYPFJkkn/biI=; b=bUzR+n+M2JLZztQtNgyzm5rPB+6r/0tI5HTPneGnFrag3erSmB8NJL1lUgyWMnA8s1 e3ngBygqYKyaOIU/5hHFS43djwyJ3wAnPSkgZkBtPzKiQqtJv9TO2PEIDIrfuCyseCS9 SjuNEMFf6jN+253geYYGX8ilWZjWpACkIjn5RX9N12udoVFV9wVhShyzg7npdsbBwsq6 HfqXzPQUlcTWwDXT3TcY6+o9YNbFmihcRl00iv+WrzOksq1wiVrTIUkFQQAe2P3YvRTW qcLJnp6D2eXllcmnR1qbZWcQevjhb/q2DDoaL5s2D5PzkYQ7JBdKrJe/lPFJrVFb0tGC UDuA== MIME-Version: 1.0 Received: by 10.60.172.202 with SMTP id be10mr2153072oec.53.1344568968636; Thu, 09 Aug 2012 20:22:48 -0700 (PDT) Received: by 10.182.160.38 with HTTP; Thu, 9 Aug 2012 20:22:48 -0700 (PDT) In-Reply-To: <201208092109.47049.hselasky@c2i.net> References: <201208092109.47049.hselasky@c2i.net> Date: Fri, 10 Aug 2012 00:22:48 -0300 Message-ID: From: Marcel Bonnet To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-multimedia@freebsd.org Subject: Re: jack-session: a command tool I made to save/restore jack connections X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2012 03:22:50 -0000 On 9 August 2012 16:09, Hans Petter Selasky wrote: > On Wednesday 08 August 2012 20:17:42 Marcel Bonnet wrote: >> Hi, >> >> I do not have much knowledge about developing audio apps/tools and C >> programming, that's why I would appreciate your considerations : >> >> I did not found on ports a command line tool that just handle >> save/restore jack connections. Does we have some? >> >> I know about LASH, but it's beyond my scope. I don't need to handle >> applications state, just the connections. >> >> I found a python script on the web (jackctl), but that script does not >> satisfy my needs - it requires too much user interactivity. >> >> So I worked on over the lsp.c (jack_lsp) and got a simple tool to do >> what I need. >> >> And last, but not least, do you guys think, if I polish the code (it's >> ugly now), this small and simple tool could be made in my small >> contribution to the ports collections? I'm not sure if a tool like >> this exists but I did not found or if it would be simple enough to go >> into ports - anyway, I'd love to do it because of the open source >> spirit and would be happy to give something simple I made back to the >> community. >> >> If you think it's ok, please let me know so I'll polish the code and >> test it better. >> >> Here is an example: >> >> $ jack-session >> Usage: jack-session [options] >> Save and restore connections of a jack session. >> Display options: >> -j, --jackserver Connect to the jack server named >> -s, --save Save connections to the session >> -r, --restore Restore connections from a session >> -h, --help Display this help message >> -v --version Output version information and exit > > > Hi, > > I think this is a good idea! Will this program run in the background and > detect when applications become present? > > --HPS Thanks. In fact not. But it's a good idea too, I'd need time to explore it. I think LASH does it in theory - but my problem is it seems to complicated for the end user to learn how to operate LASH and I've got some weird bugs with the GUI (at least running window maker). All I want is something simple to use: if I'm making music, I need something simple and fast so I can spend more time composing than fighting with the computer. That's why I started just by producing a command tool that is called manually by the user, but is easy to deal with, specially if the user is not very well familiar with unix. I'm going to update my home page, then I'll share the distfile and port I've made, in case you want to test and give me feedback. -- Marcel Bonnet