Argh, I feel a little dumb right now since it took me so long to get this idea. I got jack-audio-connection-kit running on the RPi!
Here's how you do it:
- Install jack from "jack2"-branch (was jack-dmp) (for example jack-1.9.8)
- Run jack using the "dummy"-driver without realtime: "jackd -r -p 8 -d dummy". Channel count doesn't really matter since we won't be using them! We limit the ports to 8 to limit memory-usage but feel free to increase this value.
- Run alsa_out with lowest possible quality-setting (keep CPU-usage low): alsa_out -q 0 -v
That's about it! alsa_out will create two output-channels in jack that will be played back via ALSA to the RPi's analog jack or via HDMI. The only drawback is that you have to connect your client manually to the output-ports since they are not named "system:......."
I even went one step further and set-up a netjack-solution:
- Run jack2 on your desktop-pc/laptop
- Load the "netmanager" on your desktop/laptop: "jack_load netmanager"
Now on the Raspberry Pi:
- Run jack using the "net"-driver without realtime: "jackd -r -p 8 -d net -C 2 -P 0"
- Run alsa_out with lowest possible quality-setting (keep CPU-usage low): alsa_out -q 0 -v
- Connect the two channels coming from your "net master" (=desktop/laptop) to your ALSA-output:
jack_connect system:capture_1 alsa_out:playback_1
jack_connect system:capture_2 alsa_out:playback_2
Now you have two channels on your desktop/laptop that will be sent to your RPi via network and be played back there. Audio streaming the JACK way. More info about netjack2:
http://trac.jackaudio.org/wiki/WalkThro ... r/NetJack2
If you experience XRUNs, try increasing the "frames/period" value on your "net master" machine. 256 frames/period do work quite well for me, 1024 is a pretty safe value.