You are not logged in.

#1 2010-02-09 01:04:47

soulfire
Member
Registered: 2007-04-13
Posts: 9

Pulseaudio through JACK problem

Hi,
I'm trying to set up pulseaudio and jack to work together on my machine. The idea is routing pulseaudio to jack, to do that i added the lines

load-module module-jack-source
load-module module-jack-sink

### Automatically load driver modules depending on the hardware available
#.ifexists module-udev-detect.so
#load-module module-udev-detect
#.else

to /etc/pulse/default.pa. That way, when gnome starts up, pulseaudio should automatically load jack and route is input and output to it.
At the beginning it worked out of the box, and I was quite happy till I noticed that I had no realtime activated for jack, so I added

@audio          -       rtprio          99
@audio          -       nice           -10
@audio          -       memlock         1048576
@pulse-rt     -     rtprio         99
@pulse-rt     -     nice         -11
@pulse-rt    -    memlock        1048576

to /etc/security/limits.conf, I added my user to the pulse-rt group, and I set up the default jack parameters in /etc/jackdrc

/usr/bin/jackd -T -R -P89 -dalsa -dhw:0 -r44100 -p512 -n2

Now strange things happen... If I try to start pulseaudio manually with this configuration I get the following

JACK compiled with System V SHM support.
cannot use real-time scheduling (FIFO at priority 10) [for thread -1219754304, from thread -1219754304] (1: Operation not permitted)
cannot create engine
E: module-jack-source.c: jack_client_open() failed.
E: module.c: Failed to load  module "module-jack-source" (argument: ""): initialization failed.
E: main.c: Module load failed.

From which I can argue that jack could not access realtime features... But if I start jackd manually, with the same options mentioned above, it starts flawlessly with realtime support. And if I remove the "-R" option from jackdrc, pulseaudio starts without errors and jack as well.

So the problem is just when jack is launched through pulseaudio WITH the realtime option...

How can I sort this out  ?

Last edited by soulfire (2010-02-09 01:06:54)

Offline

Board footer

Powered by FluxBB