<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <big><font size="-1"><big><font face="sans-serif">Just one of those
            aha experiences - not sure if anyone is interested but here
            it is anyway...<br>
            <br>
            On my fc15 x86_64 installation I built and installed
            pulseaudio-1.1 from the </font></big></font><font size="-1"><big><font
            face="sans-serif">pulseaudio-1.1</font></big></font><font
        size="-1"><big><font face="sans-serif">-3.fc17.src.rpm as found
            on <a class="moz-txt-link-rfc2396E" href="http://koji.fedoraproject.org/koji/">"http://koji.fedoraproject.org/koji/"</a>.<br>
            <br>
            The main reason for doing this is the better emulation of
            alsa in </font></big></font><font size="-1"><big><font
            face="sans-serif"> pulseaudio-1.1 compared to </font></big></font><font
        size="-1"><big><font face="sans-serif"> pulseaudio-0.9.2x.<br>
            <br>
            Not only does pulseaudio run perfectly on top of jackd, but
            it is possible to route alsa only apps like sunvox into
            qtractor/ardour.<br>
            <br>
            To do this I needed the four scripts listed at the bottom of
            this e-mail.<br>
            <br>
            I used Qjackctl to run the scripts with the following
            entries in the options tab of the settings dialogue:<br>
            <br>
            Execute script on Startup:    /home/<i>username</i>/.scripts/pulse-jack-pre-start.sh
            &amp;<br>
            <br>
          </font></big></font><font size="-1"><big><font
            face="sans-serif">Execute script after Startup:    /home/</font></big></font></big><big><font
        size="-1"><big><font face="sans-serif"><i>username</i></font></big></font></big><big><font
        size="-1"><big><font face="sans-serif">/.scripts/pulse-jack-post-start.sh
            &amp; a2jmidid -e &amp;<br>
            <br>
          </font></big></font><font size="-1"><big><font
            face="sans-serif">Execute script on Shutdown:    /home/</font></big></font></big><big><font
        size="-1"><big><font face="sans-serif"><i>username</i></font></big></font></big><big><font
        size="-1"><big><font face="sans-serif">/.scripts/pulse-jack-pre-stop.sh
            &amp; killall a2jmidid &amp;<br>
            <br>
          </font></big></font><font size="-1"><big><font
            face="sans-serif">Execute script after Shutdown:    /home/</font></big></font></big><big><font
        size="-1"><big><font face="sans-serif"><i>username</i></font></big></font></big><big><font
        size="-1"><big><font face="sans-serif">/.scripts/pulse-jack-post-stop.sh
            &amp;<br>
            <br>
            If anyone has a better way to start and stop a2jmidid, I
            would be interested.<br>
          </font></big></font><br>
    </big>Regards, Simon<big><br>
      <font size="-1"><big><font face="sans-serif"><br>
            <br>
            pulse-jack-pre-start.sh<br>
            _____________________<br>
            #!/bin/bash<br>
            pacmd suspend true<br>
            <br>
            <br>
            pulse-jack-post-start.sh<br>
            ______________________<br>
            #!/bin/bash<br>
            pactl load-module module-jack-sink channels=2<br>
            pactl load-module module-jack-source channels=2<br>
            pacmd set-default-sink jack_out<br>
            pacmd set-default-source jack_in<br>
            <br>
            <br>
          </font></big></font><font size="-1"><big><font
            face="sans-serif">pulse-jack-pre-stop.sh<br>
            _____________________<br>
            #!/bin/bash<br>
            SINKID=$(pactl list | grep -B 1 "Name: module-jack-sink" |
            grep Module | sed 's/[^0-9]//g')<br>
            SOURCEID=$(pactl list | grep -B 1 "Name: module-jack-source"
            | grep Module | sed 's/[^0-9]//g')<br>
            pactl unload-module $SINKID<br>
            pactl unload-module $SOURCEID<br>
            sleep 5<br>
            <br>
            <br>
            pulse-jack-post-stop.sh<br>
            ______________________<br>
            #!/bin/bash<br>
            pacmd suspend false<br>
            <br>
          </font></big></font></big>
  </body>
</html>