jack_snapshot
A terminal based utility for storing/restoring jack connection states.
Grab the Source here:
This is the README:
jack_snapshot - a little tool for storing/restoring jack connection states.
it does this by writing/reading the names of the connected ports into/from a
simple textfile. and here is also one weakness: some jack clients don’t use the
same jack name on each run, but dynamically assign one (like meterbridge)
but most of them can be told to use a specific name, so this isn’t really a
problem. at least not for me. some pattern matching might be added in the
future. Patches happily accepted.
Installation:
run
make
and copy the executable somewhere into your path.
Usage:
run jack_snapshot w/o options to get usage info
License:
everything in this package is covered by the GPL 2. see the LICENSE file for more info
everything in this package is (C) Florian Schmidt (mista dot tapas at gmx dot net)
Usage info:
Options:
–noclear do not clear all existing connections before restoring
Commandline must be in exact order as above (options last)
$ make
g++ jack_snapshot.cc -o jack_snapshot `pkg-config jack –libs`
jack_snapshot.cc: In function ‘int main(int, char**)’:
jack_snapshot.cc:21: error: ‘exit’ was not declared in this scope
jack_snapshot.cc:35: error: ‘exit’ was not declared in this scope
jack_snapshot.cc:113: error: ‘strncpy’ was not declared in this scope
make: *** [jack_snapshot] Error 1
After adding the following to the include section of jack_snapshot.cc
it compiles.
#include
#include
seems to be a GCC 4.3 issue
thanks for this helpful little tool!
oops, the header names got eaten by the markup, they are:
string.h
cstdlib
the option is a double - ! In my browser it looks like only one, but it only works right with 2: — ; so this is fine:
/mnt/linux-nobi/jack_snapshot-0.0.3/jack_snapshot restore ~/onlyone.snapshot –noclear
by problems during compiling, check Davids reply and do the 2 include in the cc code.
thanks for sharing this useful code to Florian Schmidt.
for the jack.h-include you need some jack-library: libjack or some other jack-audio-connection-kit