Jackd on Emu10k1

16 channel effects bus....

/usr/bin/jackstart -T -R -P89 -dalsa -Chw:0,2 -r96000 -p1024 -n2 -Phw:0,3 -s -m -o16 -zs -H -M

For 32 or 24 bit output (?) on emu10k1 with jackd (supports 48000, 96000, 192000 as in p16v.c) The "HD Analog" controls in alsamixer can control the volume of these output lines.

/usr/bin/jackstart -T -R -P89 -dalsa -r96000 -p512 -Phw:0,4 -o8 -H

The output ports seem to be as follows:
1Green Left
2Green Right
3Orange Left
4Orange Right
7Black Left
8Black Right

The black jack apparently has the best audio quality

Jackd for OpenAL (Such as ut2004)

Two files in the home directory allow openal applications like unreal tournament 2004 to be used with jack, and so with ALSA cards that do not really have their own mixer.

cat >> ~/.openalrc << EOF
(define devices '(alsa native))
(define alsa-device "plug:SLAVE=jack")

cat >> ~/.asoundrc << EOF
pcm.jack {
        type jack
        playback_ports {
                0 alsa_pcm:playback_1
                1 alsa_pcm:playback_2
        capture_ports {
                0 alsa_pcm:capture_1
                1 alsa_pcm:capture_2

Use Jack / ALSA for festival output

(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Required_Format 'riff)
(Parameter.set 'Audio_Command "aplay -q -D plug:SLAVE=jack $FILE")

Goes in /etc/festival.scm

mkfifo ~/.ut2004/System/speech
while true
        cat ~/.ut2004/System/speech | while read
                echo -ne "(SayText \""
                echo -n $REPLY | sed 's/\\/\\\\/g
                echo -e ".\")"
done | festival

This can now be used to provide a speech device instead of the other method involving a speechd for ut2004