On Wed, Feb 02, 2005 at 11:32:20AM +0000, Jamie Bullock wrote:
Dear list,
I am trying to write a very simple script that launches jack and then
alsaplayer. I have tried a variety of techniques, but the only thing I
can get to work is a file containing:
/usr/bin/jackd -T -R -P60 -dalsa -dhw:0 -r44100 -p128 -n2 &
sleep 5
/usr/bin/alsaplayer -r -o jack
I am sure I am missing some core linux/unix knowledge here, because the
above strikes me as a bit of a nasty hack. Does anyone know of a more
elegant solution?
You could try replacing the sleep 5 with:
while test ! -e /var/lib/jack/tmp/jack-$UID; do
sleep 1;
done
You will need to change the /var/lib/... path to whatever your jackd uses,
but it works for me with a Planet CCRMA jackd.
It just waits until jackd has created the FIFO that it uses to
communicate, hopefully by which time clients should be able to connect OK.
"man test" for details.
- Steve