i've been trying to get jack to work, but cant find any useful information on it. I installed alsa recently and now thats working fine but it only lets you use one app at once.

I was using esound but now half the programs im using arent compatible with it whereas i think they all work with jack.

I use debian sarge. I put jack on before alsa (whoops

Here's what happens:

I get the following message from qjackctl ( jack control from debian>apps>sound>:


16:40:16.922 Patchbay deactivated.
16:40:17.019 Statistics reset.
16:40:17.421 Startup script...
16:40:17.421 artsshell -q terminate
JACK compiled with System V SHM support
16:40:17.456 MIDI connection graph change.
16:40:18.281 Startup script terminated with exit status=256.
16:40:18.290 JACK is starting...
16:40:18.290 /usr/bin/jackd -R -dalsa -ddefault -r48000 -p1024 -n2 -P
16:40:18.305 JACK was started with PID=3447 (0xd77).
jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
cannot lock down memory for jackd (Operation not permitted)
loading driver ..
apparent rate = 48000
creating alsa driver ... default|-|1024|2|48000|0|0|nomon|swmeter|-|32bit
the playback device "default" is already in use. Please stop the application using it and run JACK again
cannot load driver module alsa
16:40:18.379 JACK was stopped successfully.
16:40:20.616 Could not connect to JACK server as client

This is after closing down any music programs and servers.

If i try getting the server running on its own through terminal
by using: jackd -dalsa


jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
Couldn't open hw:0 for 32bit samples trying 24bit instead
Couldn't open hw:0 for 24bit samples trying 16bit instead
Couldn't open hw:0 for 32bit samples trying 24bit instead
Couldn't open hw:0 for 24bit samples trying 16bit instead


then it sticks and i get loads of messages along these lines:

**** alsa_pcm: xrun of at least 10.897 msecs



**** alsa_pcm: xrun of at least 3.510 msecs



**** alsa_pcm: xrun of at least 32.984 msecs



**** alsa_pcm: xrun of at least 38.044 msecs

or if try: jackd -R -dalsa
i get:


jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

cannot lock down memory for jackd (Operation not permitted)
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
Couldn't open hw:0 for 32bit samples trying 24bit instead
Couldn't open hw:0 for 24bit samples trying 16bit instead
Couldn't open hw:0 for 32bit samples trying 24bit instead
Couldn't open hw:0 for 24bit samples trying 16bit instead
JACK: unable to mlock() port buffers: Operation not permitted
jack_create_thread: error -1 switching current thread to rt for inheritance: Unknown error 4294967295
cannot start watchdog thread
cannot load driver module alsa