From owner-freebsd-multimedia@FreeBSD.ORG Thu Aug 9 19:09:19 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD0FD1065670 for ; Thu, 9 Aug 2012 19:09:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 3D0E38FC16 for ; Thu, 9 Aug 2012 19:09:18 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 305975318; Thu, 09 Aug 2012 21:09:16 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Thu, 9 Aug 2012 21:09:47 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201208092109.47049.hselasky@c2i.net> Cc: 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: Thu, 09 Aug 2012 19:09:19 -0000 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